Merge branch 'refactoring/networking' of https://github.com/Tiiffi/mcrcon into refactoring/networking

This commit is contained in:
Tiiffi
2016-11-15 21:14:16 +02:00
2 changed files with 27 additions and 9 deletions

View File

@ -1,11 +1,14 @@
####Compiling:
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".
make - compiles mcrcon
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 windows, remember to link with winsockets.
Add ```-lws2_32``` to compiler command line on Mingw GCC.
---
On Window remember to link with winsockets by adding "-lws2_32" to your compiler command line.

View File

@ -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: mcrcon [OPTIONS]... [COMMANDS]...
@ -21,7 +34,9 @@ Commands with arguments must enclosed in quotes.
Example:
```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.
```
enable-rcon=true