Filled Multiverse no permission messages

Discussion in 'Plugin Requests' started by Lightcaster5, Oct 14, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    Lightcaster5

    Plugin category: Chat Modification

    Minecraft version: 1.12.2

    Suggested name: MultiverseMessageHider

    What I want: To add permissions to a lot of the commands allowed without any permissions. For example, someone could spam "/mv version" and the console would get filled with the version statistics. Or even just the simple "/mv" prints a few messages to the player. The plugin would test for these chat events, see if they have a permission (mvm.view for example), cancel the message and send a configurable one to them instead. This would apply to every single multiverse command... even the ones that say like "you dont have the permission: multiverse.world.create" (I don't know if that's an actual one it is just an example.)

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: mvm.viewmessages

    When I'd like it by: Within a week or so, anytime is fine :)
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    Lightcaster5

    How do you remove permissions with pex?
    And if this does work will it give me another one of those messages like "you do not have the permission -multiverse.permission.node"?

    My goal is to have something that blocks all messages from commands that the user doesn't have permission to, I'm trying to hide a lot of my plugins so when a user does something like /mv and they don't have permission for it, it will say '§fUnknown command. Please type "/help" for help.'
     
  4. Online

    timtower Administrator Administrator Moderator

  5. Offline

    Lightcaster5

    I'll take a look at it, thanks Tim.

    EDIT:
    After adding this to the "rules.yml" everything worked
    Code:
    mv1:
      type: CONTAINS
      message-mask: 'You do not have any of the required permission(s):'
      replace-to: '&fUnknown command. Type "/help" for help.'
      cooldown-time: ''
      use-formating: true
    mv2:
      type: CONTAINS
      message-mask: '&amultiverse'
      replace-to: ''
      cooldown-time: ''
      use-formating: true
     
    Last edited: Oct 14, 2019
    timtower likes this.
  6. Offline

    robertlit

Thread Status:
Not open for further replies.

Share This Page