Skip to content

Commit 4e83ecb

Browse files
tidy tidy tidy
1 parent e569911 commit 4e83ecb

File tree

5 files changed

+102
-8
lines changed

5 files changed

+102
-8
lines changed

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM itzg/ubuntu-openjdk-7
22

3-
EXPOSE 25565
4-
53
RUN useradd -M -s /bin/false --uid 1000 minecraft \
64
&& mkdir /data \
75
&& mkdir -p /data/plugins \
@@ -16,14 +14,12 @@ WORKDIR /data
1614

1715
ADD out/canarymod.jar canarymod.jar
1816
ADD out/scriptcraft.jar plugins/scriptcraft.jar
17+
ADD src/server.cfg config/server.cfg
1918
ADD out/world.cfg config/worlds/default/default_NORMAL.cfg
2019

2120
RUN cd /data; java -jar canarymod.jar noControl
21+
RUN sed -i 's/false/true/' eula.txt
2222

23-
RUN cd /data \
24-
&& sed -i 's/false/true/' eula.txt \
25-
&& sed -i '/^player-idle-timeout=/ s/=.*$/=120/' config/server.cfg \
26-
&& sed -i '/^server-locale=/ s/=.*$/=fr_FR/' config/server.cfg \
27-
&& sed -i '/^motd=/ s/=.*$/=Gnancraft/' config/server.cfg
23+
EXPOSE 25565
2824

2925
CMD [ "/data/start"]

build renamed to bin/build

File renamed without changes.

bin/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker run --detach=true -p 25565:25565 scriptcraft

src/server.cfg

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
;Sets whether to inform all of a Player's Achievement
2+
announce-player-achievements=true
3+
;Sets whether to allow items with enchantments to stack with non-enchanted items
4+
allow-enchantment-stacking=false
5+
;The default message to use for user bans
6+
ban-default-message=You are banned from this server.
7+
;The message to prefix to the timestamp of a tempban expiration
8+
ban-expiration-date-message=Your Ban will be lifted at
9+
;Valid default placeholders are:
10+
;%prefix (player prefix), %name (player name), %group (main group)
11+
;You can use standard color codes at all times. Use & as identifier if you miss a § key
12+
;Plugins may extend the list of available placeholders
13+
chat-format=<%prefix%name&f> %message
14+
;Sets whether the Command Block is allowed or not
15+
command-block-enabled=false
16+
;This groups permissions will determine what Command Block can and can not do!
17+
command-block-group=default
18+
;Sets whether the Command Block is considered Operator or not (Vanilla command use)
19+
command-block-op=false
20+
;The Datasource type to use (Default available: xml, mysql, sqlite
21+
data-source=xml
22+
;A formatting to display timestamps
23+
date-format=yyyy.MM.dd, hh:mm:ss
24+
;Sets whether to send player death message or not
25+
death-messages=true
26+
;Name of the default loaded world
27+
default-world-name=default
28+
;Sets the level of logging.
29+
;Acceptable Values: OFF FATAL ERROR WARN INFO DEBUG TRACE ALL
30+
logger-level=INFO
31+
;The maximum allowed players online (Does not count ReserveList users connecting after server is full)
32+
max-players=20
33+
;The Server list Message of the Day
34+
motd=Gnancraft
35+
;Sets whether to authenticate connecting users.
36+
;WARNING: Setting to false is INSECURE and should not be done in a production environment
37+
online-mode=true
38+
;Timeout in minutes before kicking an idle player
39+
player-idle-timeout=120
40+
;Sets whether to send data to clients for the Player List
41+
playerlist-enabled=true
42+
;Sets whether the Player List should automatically be refreshed for every player or not
43+
playerlist-autoupdate=true
44+
;Sets whether the Player List should include colors and player prefixes
45+
playerlist-usecolors=false
46+
playerlist-ticks=500
47+
;Setting this to true will enable loading plugins from folders; intended for Lua plugin developers
48+
plugin-dev-mode=false
49+
;Enables GameSpy4 protocol server listener. Used to get information about server.
50+
query-enabled=false
51+
;Set the port for the query server
52+
query-port=25565
53+
;Whether to allow remote access or not
54+
rcon-enabled=false
55+
;The port you want remote access to listen on (1-65534), DEFAULT: 25575
56+
rcon-port=25575
57+
;Password for remote access
58+
rcon-password=
59+
;Sets whether the ReserveList (join after full) is enabled or not
60+
reservelist-enabled=false
61+
reservelist-message=Not on reserve list.
62+
;Sets whether to save homes or not
63+
save-homes=true
64+
;Message to send if the server is full
65+
server-full-message=The server is full.
66+
;Set to the IP address that you want your server to listen on, or leave blank for automatic detection.
67+
server-ip=
68+
;The Port you want your server to listen on (1-65534), DEFAULT: 25565
69+
server-port=25565
70+
;Sets the default server language to use for messages. Default supported Languages can be found in the lang/languages.txt
71+
server-locale=fr_FR
72+
;Sets whether to inform players of unknown commands
73+
show-unknown-command=true
74+
;Sets whether Mojang may snoop or not
75+
snooper-enabled=true
76+
;Level of protection against Spam. Options: default - on for all but ignorerestiction users; off - no protections; all - on for all
77+
spam-protection=default
78+
;Sets whether to strictly check characters on signs for invalid chat characters. Set to false to disable (and allow more characters)
79+
strict-sign-characters=true
80+
;The name of the Server's texture/resource pack
81+
texture-pack=
82+
update-lang-files=true
83+
;Sets the maximum radius of loaded chunks around a player (3-15)
84+
view-distance=10
85+
;Whether the whitelist is enabled or not
86+
whitelist-enabled=false
87+
;The message to send to non-whitelisted players
88+
whitelist-message=Not on whitelist.
89+
;Enable automatic unloading of unused worlds.
90+
world-cache-timer-enabled=true
91+
;For how long should a world be empty before it will be unloaded (if use-world-cache is enabled)
92+
world-cache-timeout=60
93+
;If you want to enable Bungeecord support. REQUIRES THAT ONLINE MODE IS DISABLED (false)
94+
bungeecord=false

src/start

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
22

3-
cd /data; java -jar -Xmx1024M -Xms1024M /data/canarymod.jar noControl
3+
cd /data
4+
java -jar -Xmx1024M -Xms1024M /data/canarymod.jar noControl
45

0 commit comments

Comments
 (0)