pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.27k stars 1.54k forks source link

Change Player chatting abilities to be controlled by permissions #2288

Closed dktapps closed 4 years ago

dktapps commented 6 years ago

Issue description

Currently non-operators are not permitted to use colour codes in chat. When a player is opped, this is not updated. This can be easily fixed of course, but this gave me ideas on ways to improve this.

Additionally, to alter this behaviour it is necessary to have a bespoke plugin which specifically overrides this. I think it would be preferable to have this managed by permissions instead, so that permission management plugins can control it.

Additionally, there is currently no simple way to deny permission to chat ("mute"), short of cancelling PlayerChatEvent for every chat message from selected players.

This proposes the addition of a new permission node pocketmine.chat to allow permission plugins to control chat abilities.

Steps to reproduce the issue

  1. op a player
  2. notice that player can't use colour codes until they rejoin

OS and versions

lukeeey commented 6 years ago

Or you could implement the built in permissions that are shown when clicking a player in the player list

dktapps commented 6 years ago

That's just a frontend. This issue is talking about how to handle the backend permission system.

ghost commented 5 years ago

How do you go about overriding this with a plugin (as well as the colors on signs)? PureChat doesn't seem to cut it anymore.

Landy005 commented 5 years ago

Is there a way to give non operators the ability to use § then? Because for pureperms operators need to be disabled.