workers-rcon 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,11 +12,11 @@ npm install workers-rcon
12
12
  ## Использование в Cloudflare Workers
13
13
 
14
14
  ```javascript
15
- import { MinecraftRCON } from 'workers-rcon';
15
+ import { RCON } from 'workers-rcon';
16
16
 
17
17
  export default {
18
18
  async fetch(request, env) {
19
- const rcon = new MinecraftRCON({
19
+ const rcon = new RCON({
20
20
  host: 'your-server-ip.com',
21
21
  port: 25575,
22
22
  password: 'your_rcon_password'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workers-rcon",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "author": "fjk-dev",
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -17,7 +17,7 @@ interface RCONPacket {
17
17
  body: string;
18
18
  }
19
19
 
20
- export class MinecraftRCON {
20
+ export class RCON {
21
21
  private host: string;
22
22
  private port: number;
23
23
  private password: string;