refactoring of command info
This commit is contained in:
parent
afc7efcf26
commit
aa520bb36e
@ -14,6 +14,8 @@ public class CommandInfo extends BaseCommand
|
|||||||
requiredParameters.add("id");
|
requiredParameters.add("id");
|
||||||
|
|
||||||
helpDescription = "Prints information about a gate";
|
helpDescription = "Prints information about a gate";
|
||||||
|
|
||||||
|
requiredPermission = Plugin.permissionInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -46,10 +48,4 @@ public class CommandInfo extends BaseCommand
|
|||||||
sendMessage(ChatColor.GREEN + "this gate has no 'to' location");
|
sendMessage(ChatColor.GREEN + "this gate has no 'to' location");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean hasPermission(CommandSender sender)
|
|
||||||
{
|
|
||||||
return sender.hasPermission(permissionInfo) || sender.hasPermission(permissionManage);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user