Zerthick / ProtectionPerms

A simple Minecraft Sponge player protection & control plugin
https://ore.spongepowered.org/Zerthick/ProtectionPerms
GNU General Public License v2.0
3 stars 0 forks source link

Custom permission error messages #4

Open crymates opened 7 years ago

crymates commented 7 years ago

-Customize messages-

E.g. for protectionperms.item.use.minecraft:diamond_sword.on.minecraft:zombie the message to set "You are no hunter!" and not "....permission needed ..... "

Zerthick commented 7 years ago

Hmmm, maybe, I'll look into this.

williamhatcher commented 6 years ago

Bump. I'd like to see this implemented!

Zerthick commented 6 years ago

So there's two ways this could be done. I could have one generic settable message for all item use permissions, or I could make specific configurable messages for every possible permission node. The first is pretty simple, the second is more complicated, which one do you all envision?

williamhatcher commented 6 years ago

I could settle on the generic message, but the granular system would be better.

Take a look at this Gist

Zerthick commented 6 years ago

I'll see what I can do.