Solved Disable Death,Join, & Leave Messages.

Discussion in 'Bukkit Help' started by Khriz, Sep 28, 2016.

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

    Khriz

    So in my plugin FFA, and HUB. I have an event for onDeath, onRandomDeath, onJoin, and onQuit.
    About 2 days ago these were working, and we got zero messages when these events occurred.

    But now we get a line in chat with no text, just a line pops up.

    Here is the Code for onJoin & onQuit in HUB

    Code:
     @EventHandler
    public void onJoin(PlayerJoinEvent e) {
      e.setJoinMessage(null);
    }
    Code:
    @EventHandler
    public void onQuit(PlayerQuitEvent e) {
      e.setQuitMessage(null);
      }

    & Here is the code in FFA for onRandomDeath, & onDeath

    Code:
        @EventHandler
        public void deathRandom(PlayerDeathEvent event){
            event.setDeathMessage(null);
        }
    Code:
        @EventHandler
        public void killedByPlayer(PlayerDeathEvent event) {
            event.setDeathMessage(null);
        }
     
    Last edited: Sep 28, 2016
  2. Offline

    HeartandSoul

    Bud, why is it null?

    When you set a message, it expects a string. A 'null' string prints an empty line. Correct me if I'm wrong
     
  3. Offline

    timtower Administrator Administrator Moderator

    @HeartandSoul Some events accept null as: "Don't show a message at all"

    @Khriz Are you sure that this plugin is the only one changing the messages?
     
  4. Offline

    Khriz

    @timtower It's addressing many more things but they don't apply directly to this, would you like the full events?

    @HeartandSoul I'm after it sending no message at all.
     
    Last edited by a moderator: Oct 3, 2016
  5. Offline

    timtower Administrator Administrator Moderator

    @Khriz If there isn't a sendmessage in there: no need to.
    Try and run this plugin as the only one in the server to test if it is another plugin.
     
  6. Offline

    Khriz

    @timtower It works on other servers, I have no clue why it doesn't on our main.
     
  7. Offline

    timtower Administrator Administrator Moderator

    @Khriz Then some plugin is messing with it.
    Try to find that plugin.
     
    Khriz likes this.
  8. Offline

    oceantheskatr

    I'm not sure which plugin is causing it, but follow the video below and it'll show you how to troubleshoot your plugins, allowing you to quickly and efficiently figure out which plugin is causing the problem. After you figure out which plugin is causing the problem, you can either deal with it yourself or let us know in this thread and we'll try our best to help!

    Video:
     
    Khriz and timtower like this.
  9. Offline

    Khriz

    We'v figured it out :p, Ty for the help.
     
Thread Status:
Not open for further replies.

Share This Page