From 4d12f96e21283e26d648fb53c00b5f768f4b81ba Mon Sep 17 00:00:00 2001 From: Tiiffi Date: Tue, 15 Nov 2016 20:55:54 +0200 Subject: [PATCH 1/2] Update COMPILING --- COMPILING | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/COMPILING b/COMPILING index 6bb1aab..356cf89 100644 --- a/COMPILING +++ b/COMPILING @@ -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. From c9a740a3ce87a8b1a31b55c1f78a8eac7d944fdc Mon Sep 17 00:00:00 2001 From: Tiiffi Date: Tue, 15 Nov 2016 21:06:00 +0200 Subject: [PATCH 2/2] Added "Installing" paragraph. --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f8cf14f..9db470a 100644 --- a/README.md +++ b/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: 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