Skip to content

Instantly share code, notes, and snippets.

@jlitewski
Created September 3, 2013 16:46
Show Gist options
  • Save jlitewski/6426425 to your computer and use it in GitHub Desktop.
Save jlitewski/6426425 to your computer and use it in GitHub Desktop.
The End of the fucking world
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