mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-10-27 11:21:07 -04:00
README and help tweaks.
This commit is contained in:
20
README.md
20
README.md
@ -1,7 +1,7 @@
|
||||
####Compiling:
|
||||
|
||||
Raw command:
|
||||
```gcc -std=gnu11 -pedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c```
|
||||
Compile with GCC or CLANG:
|
||||
```cc -std=gnu99 -Wpedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c```
|
||||
|
||||
or just run **make**.
|
||||
|
||||
@ -16,27 +16,27 @@ Sends rcon commands to minecraft server.
|
||||
|
||||
```
|
||||
Option:
|
||||
-h Prints usage.
|
||||
-h Print usage.
|
||||
-s Silent mode. Do not print data received from rcon.
|
||||
-t Terminal mode. Acts as interactive terminal.
|
||||
-p Rcon password. Default: "".
|
||||
-H Host address or ip.
|
||||
-P Port. Default: 25575.
|
||||
-c Do not print colors. Disables bukkit color printing.
|
||||
-r Print everything in raw mode.
|
||||
-c Disable colors.
|
||||
-r Output raw packets.
|
||||
Good for debugging and custom handling of the output.
|
||||
```
|
||||
Invidual commands must be separated with spaces.
|
||||
Commands must be separated with spaces.
|
||||
|
||||
Example:
|
||||
```mcrcon -c -H 192.168.1.42 -P 9999 -p password cmd1 "cmd2 with spaces"```
|
||||
```mcrcon -c -H 192.168.1.42 -P 25575 -p password cmd1 "cmd2 arg1 arg2"```
|
||||
|
||||
#####Enable rcon
|
||||
Remember to enable rcon by changing/adding these lines to ```server.properties``` file.
|
||||
#####Enable server rcon
|
||||
Remember to enable rcon by changing / adding following lines in ```server.properties``` file.
|
||||
```
|
||||
enable-rcon=true
|
||||
rcon.port=25575
|
||||
rcon.password=your_rcon_pasword
|
||||
rcon.port=9999
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
10
mcrcon.c
10
mcrcon.c
@ -217,18 +217,18 @@ void usage(void)
|
||||
"Usage: "IN_NAME" [OPTIONS]... [COMMANDS]...\n"
|
||||
"Sends rcon commands to minecraft server.\n\n"
|
||||
"Option:\n"
|
||||
" -h\t\tPrints usage.\n"
|
||||
" -h\t\tPrint usage.\n"
|
||||
" -s\t\tSilent mode. Do not print data received from rcon.\n"
|
||||
" -t\t\tTerminal mode. Acts as interactive terminal.\n"
|
||||
" -p\t\tRcon password. Default: \"\".\n"
|
||||
" -H\t\tHost address or ip.\n"
|
||||
" -P\t\tPort. Default: 25575.\n"
|
||||
" -c\t\tDo not print colors. Disables bukkit color printing.\n"
|
||||
" -r\t\tPrint everything in raw mode.\n\t\tGood for debugging and custom handling of the output.\n"
|
||||
" -c\t\tDisable colors.\n"
|
||||
" -r\t\tOutput raw packets.\n\t\tGood for debugging and custom handling of the output.\n"
|
||||
,stdout);
|
||||
|
||||
puts("\nInvidual commands must be separated with spaces.\n");
|
||||
puts("Example:\n "IN_NAME" -c -H 192.168.1.42 -P 9999 -p password cmd1 \"cmd2 with spaces\"\n");
|
||||
puts("\nCommands must be separated with spaces.\n");
|
||||
puts("Example:\n "IN_NAME" -c -H 192.168.1.42 -P 9999 -p password cmd1 \"cmd2 arg1 arg2\"\n");
|
||||
puts("minecraft rcon ("IN_NAME") "VERSION".\nReport bugs to tiiffi_at_gmail_dot_com.\n");
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in New Issue
Block a user