LegendOfMCPE / EssentialsPE

Port of Bukkit Essentials for @PocketMine Servers (Moved to @poggit-orphanage)
GNU General Public License v3.0
99 stars 21 forks source link

Missing permissions error message getpos.other node #214

Closed markkrueg closed 8 years ago

markkrueg commented 8 years ago

If I have permissions for a player set such that they have permission to getpos.use but not getpos.other, it works as intended, but when the player tries to getpos another player a blank line appears.

I believe it is intended to have a red permissions error message?

Example permission tree for allowing getpos, but not for other:

Guest:
  isDefault: true
  inheritance: []
  permissions:
  - -essentials.kit
  - -essentials.kit.other
  - -pocketmine.command.me
  - essentials.getpos.use
  - pchat.colored.format
  - pchat.colored.nametag
  - pocketmine.command.list
  - pperms.command.ppinfo
  worlds: []
Tolo0 commented 8 years ago

Permissions for other has never worked. Not sure why. Like a player with creative mode can put others in creative mode even if they have the permission blocking then from doing that

markkrueg commented 8 years ago

It DOES work now. The correct setting for allowing /getpos for player but NOT for other is by only adding this permission node:

essentials.getpos.use

The permission node for other is:

essentials.getpos.other

If you have instead added the parent essentials.getpos permission node; then you cannot disable other.

So just ONLY add essentials.getpos.use