jackz / start_paper.sh
0 curtidas
0 bifurcações
1 arquivos
Última atividade 1 month ago
starts the latest paper
| 1 | #!/bin/bash |
| 2 | JAR=$(find -type f -name 'paper-*.jar' -printf %f\\n | sort | head -1) |
| 3 | echo Found jar: ${JAR} |
| 4 | while true; do |
| 5 | java -server -Xms1G -Xmx1G -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 ${JAR} |
| 6 | echo ""; |
| 7 | for i in {5..1}; do |
| 8 | echo "Server has stopped. Auto-restarting in $i seconds. Ctrl+C to cancel." && sleep 1; |
| 9 | done |
| 10 | sleep 1; |
jackz / convert_animations_to_lua.js
0 curtidas
0 bifurcações
1 arquivos
Última atividade 1 month ago
| 1 | const fs = require('fs') |
| 2 | |
| 3 | let version = "2.0" |
| 4 | |
| 5 | fs.readFile('./animations.txt', 'utf-8', (err, data) => { |
| 6 | if(err) { |
| 7 | console.error(err) |
| 8 | process.exit(1) |
| 9 | } |
| 10 | const animations = [] |