Advertisement
Guest User

Untitled

a guest
Aug 13th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. display alert "What do you want to do?" buttons {"Enable...", "Exit"}
  2. set answ to button returned of the result
  3. if answ is "Enable..." then
  4.     display alert "What do you want to open?" buttons {"Minecraft", "Server", "Exit"}
  5.     set whatToOpen to button returned of the result
  6.     if whatToOpen is "Minecraft" then
  7.         activate application "Minecraft"
  8.     else if whatToOpen is "Server" then
  9.         display alert "What do you want to open?" buttons {"Spigot", "Sponge", "Exit"}
  10.         set serverType to button returned of the result
  11.         if serverType is "Spigot" then
  12.             tell application "Terminal"
  13.                 set currentTab to do script ("cd documents/sw && exec java -Xms1G -Xmx1G -jar server.jar")
  14.             end tell
  15.         else if serverType is "Sponge" then
  16.             tell application "Terminal"
  17.                 set currentTab to do script ("cd documents/sponge && exec java -Xms1G -Xmx1G -jar forge.jar")
  18.             end tell
  19.         end if
  20.     end if
  21. end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement