mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-10-28 11:51:08 -04:00
Merge branch 'refactoring/networking' of https://github.com/Tiiffi/mcrcon into refactoring/networking
This commit is contained in:
17
COMPILING
17
COMPILING
@ -1,11 +1,14 @@
|
|||||||
####Compiling:
|
|
||||||
|
|
||||||
Compile with GCC or CLANG:
|
Compile with GCC or CLANG:
|
||||||
```cc -std=gnu11 -Wpedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c```
|
cc -std=gnu99 -Wpedantic -Wall -Wextra -Os -s -o mcrcon mcrcon.c
|
||||||
|
|
||||||
or just run **make**.
|
Or you can just run "make".
|
||||||
|
|
||||||
On windows, remember to link with winsockets.
|
make - compiles mcrcon
|
||||||
Add ```-lws2_32``` to compiler command line on Mingw GCC.
|
make install - installs compiled binaries and manpage to the system
|
||||||
|
make uninstall - removes binaries and manpage from the system
|
||||||
|
|
||||||
---
|
file install locations:
|
||||||
|
/usr/share/bin/mcrcon
|
||||||
|
/usr/share/man/man1/mcrcon.1
|
||||||
|
|
||||||
|
On Window remember to link with winsockets by adding "-lws2_32" to your compiler command line.
|
||||||
|
|||||||
17
README.md
17
README.md
@ -1,3 +1,16 @@
|
|||||||
|
####Installing:
|
||||||
|
|
||||||
|
from sources:
|
||||||
|
|
||||||
|
1. git clone https://github.com/Tiiffi/mcrcon.git
|
||||||
|
2. cd mcrcon/
|
||||||
|
3. make
|
||||||
|
4. sudo make install
|
||||||
|
|
||||||
|
You can also download precompiled binaries: https://github.com/Tiiffi/mcrcon/releases/latest
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
####Usage:
|
####Usage:
|
||||||
Usage: mcrcon [OPTIONS]... [COMMANDS]...
|
Usage: mcrcon [OPTIONS]... [COMMANDS]...
|
||||||
|
|
||||||
@ -21,7 +34,9 @@ Commands with arguments must enclosed in quotes.
|
|||||||
Example:
|
Example:
|
||||||
```mcrcon -H my.minecraft.server -p password "say Server is restarting!" save-all stop```
|
```mcrcon -H my.minecraft.server -p password "say Server is restarting!" save-all stop```
|
||||||
|
|
||||||
#####Enable rcon on server
|
---
|
||||||
|
|
||||||
|
####Enable rcon on server
|
||||||
Remember to enable rcon by changing or adding following lines in ```server.properties``` file.
|
Remember to enable rcon by changing or adding following lines in ```server.properties``` file.
|
||||||
```
|
```
|
||||||
enable-rcon=true
|
enable-rcon=true
|
||||||
|
|||||||
Reference in New Issue
Block a user