Filled EnableMessage

Discussion in 'Archived: Plugin Requests' started by Skymurai, Jan 29, 2014.

  1. Offline

    Skymurai

    Request Filled
     
  2. Offline

    EssexIO

    I don't understand why you'd assume this, especially because WorldEdit has a hookable API.
     
    spy85 likes this.
  3. Offline

    spy85

    What codermason said is correct although if the plugin you need to disable a certain message for has an api containing listeners to regulate these things then it will become possible and WorldEdit does have an API so I believe it is possible to find a way to cancel certain messages from certain commands with WorldEdit but I cannot say for sure. If you find you really need this done let me know and I will take a look into it to see what I can do but I cannot guarantee it is possible.

    Is WorldEdit the only plugin you need this action actually done for?
     
  4. Offline

    Dunsuro

    spy85 codermason
    Actually, this is false. You can do some shady work with protocol lib (not hard) or a custom net server handler to achieve this result.
    You can see a discussion based on the idea here: https://forums.bukkit.org/threads/tut-intercept-and-edit-all-messages.98620/

    Do note, this does not work with all servers due to the general "hackish" method of approaching the problem. This could very easily break with some plugins but work fine with others.

    WorldEdit might have some sort of API for this type of thing, and if so that would be the best to use, but this is a possible (though not ideal) solution.

    Best of luck!
     
    Garris0n and spy85 like this.
  5. Offline

    Skymurai

    No. Thanks for asking. I was hoping for the ability to type the plugin name as it is stated in its plugin.yml

    I'm also annoyed by some PlotMe messages I get with my aliases as well...
     
  6. Online

    timtower Administrator Administrator Moderator

    Can't know where the messages are coming from
     
  7. Offline

    Skymurai

    So...this is impossible :/
     
  8. Online

    timtower Administrator Administrator Moderator

    Not really impossible, you just need to put in every message by hand
     
  9. Offline

    Skymurai


    What about a plugin that disables the player from seeing any chat at all? The alias I have that executes several commands could execute the disable one first, and the enable one last.
     
  10. Online

    timtower Administrator Administrator Moderator

    That is a pretty nice idea to be honest.
    Can take a look at this, shouldn't be that hard to be honest. Will require ProtocolLib
     
  11. Offline

    Skymurai

    Thanks
     
  12. Online

    timtower Administrator Administrator Moderator

    Skymurai
    Code:
    commands:
      EnableMessage:
        usage: /EnableMessage block/unblock
    
    permissions:
      enablemessage.cmd:
        default: OP
      enablemessage.bypass:
        default: OP
    https://www.dropbox.com/s/4c8xnikvnm0blmi/EnableMessage.jar
    ProtocolLib dependency
    Give players the node: enablemessage.bypass to let them see messages.
    This will block every message that is send to the player. If the user doesn't has that bypass than he won't see the plugin messages
     
  13. Offline

    Skymurai


    Hey thanks!
    I've gotta be away from home for most of the day, but I'll be excited to check it out when I get back!
     
  14. Online

    timtower Administrator Administrator Moderator

    Just let me know if you have any errors / issues with it.
     
  15. Offline

    Skymurai

    /EnableMessage isn't doing anything...
    /EnableMessage Block isn't doing anything...
    I am OP...
    It just says the ol' "Unknown Command. Type /help" or whatever...
    EDIT: Oh, I found this in the console http://pastebin.com/aLfRzwVJ
    EDIT 2: Oh! I may or may not have had ProtocolLib installed :eek:
    EDIT 3: Wait, now I see this http://pastebin.com/rKTUag5M
     
  16. Online

    timtower Administrator Administrator Moderator

  17. Offline

    Skymurai


    This worked for chat, however it still did not block the messages included in the picture I sent you in a PM.
    Also, I was looking for this plugin to also not generate any messages, so when the player runs the alias, the commands start and finish without the player seeing anything in chat.
    Thank you for your help.
     
  18. Online

    timtower Administrator Administrator Moderator

    Will get rid of those messages then. And will look at the other stuff, not sure why it is not working.
     
  19. Offline

    awesomer3

    does this block all chat or just plugins
     
  20. Online

    timtower Administrator Administrator Moderator

    Should block all messages send to the player
     
  21. Offline

    awesomer3

    timtower i mean general chat so if i were to say hi would he be able to see it
     
  22. Online

    timtower Administrator Administrator Moderator

    Nope, it should block everything
     
  23. Offline

    awesomer3

  24. Online

    timtower Administrator Administrator Moderator

    It works for me, check your permissions.
     
  25. Offline

    Skymurai

    I tested with other players. Still no luck.
    Also, like I said, could you make it so the plugin does not give any notifications? (So the player sees literally nothing at all)

    Did you try with WorldEdit/PlotMe? (The plugins giving me the messages)
     
  26. Online

    timtower Administrator Administrator Moderator

  27. Offline

    Skymurai

    Sorry, I started to assume you'd dropped the subject. That was before I realized that you probably live somewhere around the other side of the world and you were sleeping while I was waiting for help :p

    Anyway, after playing around, I noticed that I kept getting notifications "Skymurai has Bypass" in the console, when I didn't. The FIX for this, however, was to add the permission node "- -enablemessage.bypass". This fixed the problem for some reason, but hey! It worked! I also noticed you removed the plugin notification messages themselves. Thanks for that. But all in all, thanks for this plugin! That lifts an annoying "burden" off my back for this.

    Awesome!
     
  28. Online

    timtower Administrator Administrator Moderator

    Gmt +1, so yeah, probably sleeping.
    And will strip away those messages in the log, was meant to show you that your had the permission override
    EDIT: https://www.dropbox.com/s/4c8xnikvnm0blmi/EnableMessage.jar
     
  29. Offline

    Skymurai

    timtower likes this.

Share This Page