blocked-cmds custom messages

Discussion in 'WorldGuard' started by ckillers013, Nov 1, 2018.

  1. ckillers013

    ckillers013 New Member

    Is there a way to customise message from 'blocked-cmds' flags like the flag 'deny-message' ?
  2. PseudoKnight

    PseudoKnight Well-Known Member Developer

  3. ckillers013

    ckillers013 New Member

    Thanks, I hope it will be implemented soon.
  4. PseudoKnight

    PseudoKnight Well-Known Member Developer

    If it were to be implemented, I imagine it'd probably use the deny-message.
  5. ckillers013

    ckillers013 New Member

    I think there's stuff to do with a different message, like showing why some commands are blocked, not like a global message.
    If we use deny-message for both denied actions and denied commands, we need to adapt it (This is a restricted area, you have no permission here, ...).

    Basicaly, my idea is to set some regions for PVE stuff, deny-message say we're on some enemies territory, and some "cmds-message" say that there's no way to go back.

    I know this is just a little feature, not critical stuff, but if one day... RP server will thanks you I think.
  6. PseudoKnight

    PseudoKnight Well-Known Member Developer

    Deny-message can be adapted somewhat to different actions.

    Example:
    /rg f region deny-message "You can't %what% here"

    If they added blocked-cmds to this, they could replace %what% with "run that command".

    It sounds like you want far more specific messaging. That might be a better fit for a separate plugin using the WorldGuard API.
  7. ckillers013

    ckillers013 New Member

    Exactly what I'm looking for.
    Actually that default message act like it show to players what is blocking some actions.
    What I want to do is showing why those actions are blocked.
    Last edited: Nov 2, 2018