diff options
author | Bryson Steck <brysonsteck@protonmail.com> | 2023-05-13 13:14:00 -0600 |
---|---|---|
committer | Bryson Steck <brysonsteck@protonmail.com> | 2023-05-13 13:14:00 -0600 |
commit | c3d1c4899b3be5929cac9e99d54104fc57723c8b (patch) | |
tree | 84bcdc041fa1bb0ab05f9e00bc1c473c7ba44292 /app/src/main/kotlin/xyz/brysonsteck/serverfordummies/server | |
parent | 778e91a2a84b8f011523dfa76cf9545304823c5c (diff) | |
download | ServerCraft-c3d1c4899b3be5929cac9e99d54104fc57723c8b.tar ServerCraft-c3d1c4899b3be5929cac9e99d54104fc57723c8b.tar.gz ServerCraft-c3d1c4899b3be5929cac9e99d54104fc57723c8b.tar.bz2 |
add icons, server class, isolate finding server
Diffstat (limited to 'app/src/main/kotlin/xyz/brysonsteck/serverfordummies/server')
-rw-r--r-- | app/src/main/kotlin/xyz/brysonsteck/serverfordummies/server/Server.kt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/server/Server.kt b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/server/Server.kt index 16f250e..3aae89a 100644 --- a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/server/Server.kt +++ b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/server/Server.kt @@ -1,7 +1,35 @@ package xyz.brysonsteck.serverfordummies.server import java.io.File +import java.util.Properties public class Server { + public var jar = "" + private val props = Properties() + + constructor() { + props.setProperty("allow-flight", false.toString()) + props.setProperty("allow-nether", true.toString()) + props.setProperty("generate-structures", true.toString()) + props.setProperty("hardcore", false.toString()) + props.setProperty("pvp", true.toString()) + props.setProperty("white-list", false.toString()) + props.setProperty("enable-command-block", false.toString()) + props.setProperty("hide-online-players", false.toString()) + props.setProperty("max-players", 20.toString()) + props.setProperty("max-world-size", 29999984.toString()) + props.setProperty("server-port", 25565.toString()) + props.setProperty("view-distance", 10.toString()) + props.setProperty("jvm-ram", 1024.toString()) + props.setProperty("spawn-protection", 16.toString()) + props.setProperty("simulation-distance", 10.toString()) + props.setProperty("max-tick-time", 60000.toString()) + props.setProperty("difficulty", "normal") + props.setProperty("gamemode", "survival") + props.setProperty("level-name", "world") + props.setProperty("level-seed", "") + props.setProperty("level-type", "minecraft:normal") + props.setProperty("motd", "A server for a dummy") + } }
\ No newline at end of file |