Created
September 3, 2013 16:46
-
-
Save jlitewski/6426425 to your computer and use it in GitHub Desktop.
The End of the fucking world
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch(this.getServer().getName()) { | |
case "MCPC+": | |
//You're running in MCPC+, so you know you have access to it's remapper and Forge Mods. Enable stuff | |
this.enableMCPCPlusSupport(); | |
break; | |
case "Spigot": | |
//You're running in Spigot, so you have access to it's extended Bukkit API. Enable Stuff | |
this.enableSpigotSupport(); | |
break; | |
case "Craftbukkit": | |
default: | |
//You're running CraftBukkit or something you're not configured to use, do nothing fancy and follow the Bukkit API | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment