Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- display alert "What do you want to do?" buttons {"Enable...", "Exit"}
- set answ to button returned of the result
- if answ is "Enable..." then
- display alert "What do you want to open?" buttons {"Minecraft", "Server", "Exit"}
- set whatToOpen to button returned of the result
- if whatToOpen is "Minecraft" then
- activate application "Minecraft"
- else if whatToOpen is "Server" then
- display alert "What do you want to open?" buttons {"Spigot", "Sponge", "Exit"}
- set serverType to button returned of the result
- if serverType is "Spigot" then
- tell application "Terminal"
- set currentTab to do script ("cd documents/sw && exec java -Xms1G -Xmx1G -jar server.jar")
- end tell
- else if serverType is "Sponge" then
- tell application "Terminal"
- set currentTab to do script ("cd documents/sponge && exec java -Xms1G -Xmx1G -jar forge.jar")
- end tell
- end if
- end if
- end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement