Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
*Fix: ComamndSender has permission, if he is OP
Browse files Browse the repository at this point in the history
  • Loading branch information
Zolli committed Mar 19, 2013
1 parent 30776ca commit 3ec0418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/Zolli/EnderCore/Commands/commandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private String buildArgs(String[] str, int length) {
* @return Boolean False if CommandSender does not have the defined permission
*/
private boolean checkPerm(List<String> nodes, CommandSender sender) {
if(sender instanceof ConsoleCommandSender) {
if((sender instanceof ConsoleCommandSender) || sender.isOp()) {
return true;
}

Expand Down

0 comments on commit 3ec0418

Please sign in to comment.