Frogger3140

CraftBukkit Server Front End

Dec 17th, 2011
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (*
  2.  
  3. CraftBukkit Server Front End v0.0
  4.  
  5. this'll take a long time to make because the frogmod script isn't distributed and the computer that I put it on is bricked
  6.  
  7. Features Coming:
  8. CLI Front End (like frogmod script)
  9.  
  10. *)
  11.  
  12. set serverMode to 1 --don't change this, it's for testing code
  13. set craftBukkitPath to "~/minecraft" --path for craftbukkit jar
  14. set craftBukkitJarName to "craftbukkit" --craftbukkit jar name DON'T PUT IN THE .JAR EXTENSION
  15. set craftBukkitRAM to 1024 --megabytes of RAM for CraftBukkit. Set it to >=1024 depending on how much RAM you have
  16.  
  17. tell application "Terminal"
  18.     activate
  19.     if serverMode = 1 then
  20.         do script "cd " & craftBukkitPath & ";" & "java -Xmx" & craftBukkitRAM & "M -Xms" & craftBukkitRAM & "M -jar " & craftBukkitJarName & ".jar"
  21.     else
  22.         do script "echo servermode = 0"
  23.     end if
  24. end tell
Advertisement
Add Comment
Please, Sign In to add comment