/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/Jail.java |
Parent Directory | Revision Log | Patch
revision 1863 by torben, Mon Oct 15 08:02:16 2012 UTC | revision 1911 by torben, Wed Jan 9 21:09:10 2013 UTC | |
---|---|---|
# | Line 120 public class Jail implements CommandExec | Line 120 public class Jail implements CommandExec |
120 | ||
121 | if (sender instanceof Player ) { | if (sender instanceof Player ) { |
122 | Player p = (Player) sender; | Player p = (Player) sender; |
123 | if ( !p.isOp()) { | if ( p.isOp() || p.hasPermission("hoeruputils.jail") ) { |
124 | p.sendMessage("Only server operators may use this command"); | //do nothing |
125 | } else { | |
126 | p.sendMessage("Only server operators or players with hoeruputils.jail priv may use this command"); | |
127 | return true; | return true; |
128 | } | } |
129 | } else { | } else { |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |