forked from thunix/ansible
Adding config files for papermc
This commit is contained in:
parent
629b8a72b8
commit
66b65bc23c
4
roles/shell/files/var/lib/minecraft/paper/eula.txt
Normal file
4
roles/shell/files/var/lib/minecraft/paper/eula.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
|
||||
#You also agree that tacos are tasty, and the best food in the world.
|
||||
#Sun Feb 10 19:17:25 UTC 2019
|
||||
eula=true
|
7
roles/shell/files/var/lib/minecraft/paper/ops.json
Normal file
7
roles/shell/files/var/lib/minecraft/paper/ops.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
[
|
||||
{
|
||||
"uuid": "8d5d2432-20c3-4343-9aab-5fe51114b7e7",
|
||||
"name": "NDawgRuleZ",
|
||||
"level": 4
|
||||
}
|
||||
]
|
3
roles/shell/files/var/lib/minecraft/paper/start.sh
Executable file
3
roles/shell/files/var/lib/minecraft/paper/start.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
/usr/bin/java -Xms6G -Xmx6G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -Dusing.aikars.flags=mcflags.emc.gs -jar /var/lib/minecraft/paper/paperclip.jar
|
|
@ -5,7 +5,7 @@
|
|||
path: /var/lib/minecraft
|
||||
state: directory
|
||||
owner: minecraft
|
||||
group: root
|
||||
group: minecraft
|
||||
mode: 0770
|
||||
recurse: yes
|
||||
|
||||
|
@ -21,9 +21,25 @@
|
|||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/var/lib/minecraft/paper/start.sh
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
User=znc
|
||||
User=minecraft
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
- name: Install start.sh
|
||||
copy:
|
||||
src: ../files/var/lib/minecraft/paper/start.sh
|
||||
dest: /var/lib/minecraft/paper/start.sh
|
||||
owner: minecraft
|
||||
group: root
|
||||
mode: 0660
|
||||
|
||||
- name: Install minecraft ops list
|
||||
copy:
|
||||
src: ../files/var/lib/minecraft/paper/ops.json
|
||||
dest: /var/lib/minecraft/paper/ops.json
|
||||
owner: minecraft
|
||||
group: minecraft
|
||||
mode: 0660
|
||||
|
|
|
@ -61,6 +61,6 @@
|
|||
- include: users/swann.yml
|
||||
- include: users/ukhuwah.yml
|
||||
- include: users/mom.yml
|
||||
- indlude: users/andro.yml
|
||||
- include: users/andro.yml
|
||||
- include: users/hasbullah.yml
|
||||
- include: users/riska.yml
|
||||
|
|
Loading…
Reference in New Issue
Block a user