sekwah41 / Advanced-Portals

An advanced portals plugin for bukkit
GNU Lesser General Public License v3.0
154 stars 65 forks source link

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

Open TreemanKing opened 12 months ago

TreemanKing commented 12 months ago

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;
}