Created
December 20, 2011 17:08
-
-
Save tehbeard/1502338 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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