Skip to content

Instantly share code, notes, and snippets.

@tehbeard
Created December 20, 2011 17:08
Show Gist options
  • Save tehbeard/1502338 to your computer and use it in GitHub Desktop.
Save tehbeard/1502338 to your computer and use it in GitHub Desktop.
log.info("[EscapePlug] loading hatMe");
//get Config
List<Integer> rbBlocks = getConfig().getList("plugin.hatme.allowed");
boolean rbAllow = getConfig().getBoolean("plugin.hatme.enable");
String notAllowedMsg = getConfig().getString("plugin.hatme.notAllowedMsg");
boolean rbOp = getConfig().getBoolean("plugin.hatme.opnorestrict");
//construct command and assign to /hat and /unhat
CommandExecutor hatMe = new HatmeCommand(rbBlocks,rbAllow,rbAllowed,rbOp);
getCommand("hat").setExecutor(hatMe);
getCommand("unhat").setExecutor(hatMe);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment