sekwah41 / Advanced-Portals

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

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

Closed TreemanKing closed 1 week ago

TreemanKing commented 1 year 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;
}
sekwah41 commented 1 week ago

Closed as this is for the old version and implemented