PEXPlugins / PermissionsEx

A powerful permissions plugin for Minecraft
https://permissionsex.stellardrift.ca
Apache License 2.0
481 stars 297 forks source link

PEX/Chatmanager not Working Properly with new permission group. #747

Closed DeanUK closed 11 years ago

DeanUK commented 11 years ago

Hi.

I'm having some problems with chatmanager and pex. I've setup my permissions and chatmanager to how I want. The prefixes etc work perfectly except for one rank: Addict for which the formatting of chat messes up. Instead of normal colours and prefixes I get the default minecraft chat formatting with yellow mixed in there too.

Server log error (when I talk) http://pastebin.com/GxW6rUW3

ChatManager Config: http://pastebin.com/AuUTBEVe

Permissions File: http://pastebin.com/BBrDvBN2

Thank you for your help :)

rockloudly123 commented 11 years ago
  Addict:
    default: false
    prefix: '&r[&3%oAddict&r] '
    suffix: '&7'
    permissions:
    - -towny.town.spawn.*
    - -essentials.home
    - -essentials.sethome
    inheritance:
    - Citizen
  Dealer:
    default: false
    prefix: '&r[&3%oDealer&r] '
    suffix: '&7'
    permissions:
    - -towny.town.spawn.*
    - -essentials.home
    - -essentials.sethome
    inheritance:
    - Addict
  Drug-Lord:
    default: false
    prefix: '&r[&3%oDrug Lord&r] '
    suffix: '&7'
    permissions:
    - friskstick.*
    - -friskstick.use
    - -friskstick.jail
    - -friskstick.chat
    - -friskstick.report.*
    - towny.command.nation.new
    inheritance:
    - Citizen
  Student:
    default: false
    prefix: '&r[&3%oStudent&r] '
    suffix: '&7'
    permissions:
    - -towny.town.spawn.*
    - -essentials.home
    - -essentials.sethome
    inheritance:
    - Citizen
  Lord:
    default: false
    prefix: '&r[&3%oLord&r] '
    suffix: '&7'
    permissions:
    - -towny.town.spawn.*
    - -essentials.home
    - -essentials.sethome
    inheritance:
    - Student
  Mayor:
    default: false
    prefix: '&r[&3%oMayor&r] '
    suffix: '&7'
    permissions:
    - friskstick.*
    - -friskstick.use
    - -friskstick.jail
    - -friskstick.chat
    - -friskstick.report.*
    - towny.command.nation.new
    inheritance:
    - Citizen

I see your mistake; on the permissions for all these groups you added an extra "-". For example; " - -friskstick.use" Should say: "- friskstick.use" That's all I noticed, there could be more errors. I suggest you run this through a YAML Parser. Regards, Nykolas

zml2008 commented 11 years ago

@rockloudly123 That's permission negation, not a mistake...

DeanUK commented 11 years ago

@rockloudly123 I thought that @zml2008 was right, but checked to see if it would work. But it didn't, so he was xD :[

zml2008 commented 11 years ago

I am fairly sure this is some sort of Bukkit bug -- it's due to the chat format string being changed, somebody else reported it as a TownyChat issue. I'll mention it to the Bukkit folks, but for future reference ChatManager is no longer maintained, so you should switch to another chat management plugin.

zml2008 commented 11 years ago

Actually, it looks like it's happening because of the %o in your group prefix (after the [) - it's causing an issue with the way Bukkit's chat system works. Try removing that.

DeanUK commented 11 years ago

@zml2008 Ah! I meant to put &o! Lol, thanks for spotting that :)