Skip to content

Commit 615be8a

Browse files
author
Hubert
authored
Add files via upload
1 parent 7244b95 commit 615be8a

File tree

8 files changed

+63
-0
lines changed

8 files changed

+63
-0
lines changed

Commands/setuid/ban-ip

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
. .server-settings
4+
5+
if [ $# = "1" ]
6+
then screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "ban-ip ${1}"`printf \\\r`
7+
fi
8+

Commands/setuid/mem

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
# "/mv who" command comes from the Multiverse-Core plugin and list players across dimensions
4+
5+
. .server-settings
6+
7+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "mem"`printf \\\r`
8+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "mv who"`printf \\\r`
9+
sleep 1
10+
tail -50 ${SERVER_ROOT}/logs/latest.log | awk '/CONSOLE issued server command:/,lastline'

Commands/setuid/pex_reload

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
. .server-settings
4+
5+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "pex reload"`printf \\\r`

Commands/setuid/save-all

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
. .server-settings
4+
5+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "save-all"`printf \\\r`
6+

Commands/setuid/say

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
. .server-settings
4+
5+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "say $*"`printf \\\r`

Commands/setuid/start.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
. .server-settings
4+
5+
cd ${SERVER_ROOT}
6+
screen -S ${GNUSCREEN_SESSION} -t ${GNUSCREEN_WINDOW} -dm setuid/startbukkit.sh

Commands/setuid/startbukkit.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
. .server-settings
4+
5+
PATH=${JAVA_PATH}:${PATH}
6+
7+
java -Xms${SERVER_MINRAM} -Xmx${SERVER_MAXRAM} ${JAVA_OPTS} -jar ${SERVER_NAME} nogui --log-strip-color

Commands/setuid/stop

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
. .server-settings
4+
5+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "say Stopping server for maintenance in 1 minute!"`printf \\\r`
6+
if [ $# = "1" ]
7+
then screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "say Server will be back online in about ${1} minutes"`printf \\\r`
8+
fi
9+
sleep 50
10+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "say Stopping server for maintenance in 10 seconds!!"`printf \\\r`
11+
sleep 10
12+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "say Stopping server for maintenance now!!!"`printf \\\r`
13+
sleep 1
14+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "save-all"`printf \\\r`
15+
screen -S ${GNUSCREEN_SESSION} -p ${GNUSCREEN_WINDOW} -X stuff "stop"`printf \\\r`
16+

0 commit comments

Comments
 (0)