Advanced-Portals icon indicating copy to clipboard operation
Advanced-Portals copied to clipboard

fix: add permission nodes for list/help in destinations command

Open TreemanKing opened this issue 2 years ago • 0 comments

fix: Add Permission Nodes for List/Help in Destinations Command

Closes #239

Probably better to add this instead of checking each command. This might mean that the warp command might have to be changed into its own category but that should be relatively easy, or you could make it so they need permission to both warp && desti.

if(!sender.hasPermission("advancedportals.desti")) {
    sender.sendMessage(PluginMessages.customPrefixFail + " You do not have permissions to use the destination command!");
    return true;
}

TreemanKing avatar Sep 11 '23 14:09 TreemanKing