palworld_rcon 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +3 -5
- data/lib/palworld_rcon/client.rb +16 -0
- data/lib/palworld_rcon/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09ee170496be37bf56728b632cfa7ea854b1827cd04f67510ef50dc3808c49c7'
|
4
|
+
data.tar.gz: 0dcd5ba12d13f1de0c5721de10c8141cdf9fc8d2895554e7270de794053e3766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 780d152cb8f3bb6b8eb8ac9149bd77438035347fb5ef95b2d8731466c7e594b1c8feeefbe767f30b6c3bcc1d3624a6422a9abb8b1cacca9fc84ce2d7670cc266
|
7
|
+
data.tar.gz: 6acbbd2bf5c637b04522d01c787a42d80e9d84df168b0a118f641c49fe9197c06bd8fe9e3fb2796e0136bd6aef0a68975c3ac624d4c0807b96c6aeaa2a9da67b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
# PalworldRcon
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/palworld_rcon`. To experiment with that code, run `bin/console` for an interactive prompt.
|
3
|
+
A ruby Palworld RCON client.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
Install the gem and add to the application's Gemfile by executing:
|
10
8
|
|
11
|
-
$ bundle add
|
9
|
+
$ bundle add palworld_rcon
|
12
10
|
|
13
11
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
14
12
|
|
15
|
-
$ gem install
|
13
|
+
$ gem install palworld_rcon
|
16
14
|
|
17
15
|
## Usage
|
18
16
|
|
data/lib/palworld_rcon/client.rb
CHANGED
@@ -30,6 +30,22 @@ module PalworldRcon
|
|
30
30
|
execute_command("ShowPlayers")
|
31
31
|
end
|
32
32
|
|
33
|
+
def shutdown(count_down, message)
|
34
|
+
execute_command("Shutdown #{count_down} #{message}")
|
35
|
+
end
|
36
|
+
|
37
|
+
def save
|
38
|
+
execute_command("Save")
|
39
|
+
end
|
40
|
+
|
41
|
+
def server_info
|
42
|
+
execute_command("Info")
|
43
|
+
end
|
44
|
+
|
45
|
+
def do_exit
|
46
|
+
execute_command("DoExit")
|
47
|
+
end
|
48
|
+
|
33
49
|
private
|
34
50
|
|
35
51
|
def execute_command(cmd)
|