Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Permission implements CommandExecutor {
- @SuppressWarnings("unused")
- private final Main plugin;
- public Permission(Main plugin){
- this.plugin = plugin;
- }
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
- if(cmd.getName().equalsIgnoreCase("pex")){
- if(!sender.hasPermission("permission.pex") || !sender.isOp()){
- sender.sendMessage("Ciao");
- }
- else{
- sender.sendMessage("Non ciao");
- }
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement