[REQ] [EASY] Disable Has Joined / Left the game.

Discussion in 'Archived: Plugin Requests' started by Joannou1, Feb 19, 2012.

  1. Offline

    Joannou1

    I know this is easy, and can be done fast.
    https://github.com/Bukkit/CraftBukkit/pull/211
    They implemented a way to disable it right here!
    I have a very large server, and players leaving and joining fills half the chat and makes things cluttered and hard to read!

    If someone could make this for me, I will give them a great rank on my server + credits on my server. Possibly even a small donation.

    Thanks a ton!
    Joannou1

    Ps. I've searched up and down for previous plugins for this, and their implementation has no accessible option by me to disable it.
     
  2. Offline

    efstajas

    There are lots of plugins that let you change the login message, I guess by simply setting it to nothing you can disable it. ;)
     
  3. Offline

    Joannou1

    efstajas
    I really, really don't want some heavy plugin like Herochat JUST for that.
    I have spent a good 2 weeks searching for something very simple that will disable this.
    I will pay too if it is SO hard to use their implementation!
     
  4. Offline

    vildaberper

  5. Offline

    Joannou1

    vildaberper
    Ahah!
    Perfect!
    Thank you so much.
    Free premium rank for you if you ever come on the GLD :p
    Works perfectly, Essentials only announces newbies, which is perfect.
    Also, thanks for the extremely speedy make of it!
     
  6. Offline

    vildaberper

    Don't mention it. It took me about a minute to code. xD
    Code:
    package com.vildaberper.NoJLMessages;
     
    import java.util.logging.Logger;
     
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.Listener;
    import org.bukkit.event.player.PlayerJoinEvent;
    import org.bukkit.event.player.PlayerQuitEvent;
    import org.bukkit.plugin.java.JavaPlugin;
     
    public class NoJLMessages extends JavaPlugin{
        private Logger log = Logger.getLogger("Minecraft");
     
        private Listener listener = new Listener(){
            @SuppressWarnings("unused")
            @EventHandler
            public void onPlayerJoin(PlayerJoinEvent event){
                event.setJoinMessage(null);
            }
     
            @SuppressWarnings("unused")
            @EventHandler
            public void onPlayerQuit(PlayerQuitEvent event){
                event.setQuitMessage(null);
            }
        };
     
        @Override
        public void onDisable(){
            log.info("[" + getDescription().getName() + "] v" + getDescription().getVersion() + " is disabled.");
        }
     
        @Override
        public void onEnable(){
            getServer().getPluginManager().registerEvents(listener, this);
            log.info("[" + getDescription().getName() + "] v" + getDescription().getVersion() + " is enabled.");
        }
    }
     
    kahlilnc likes this.
  7. Offline

    Joannou1

    Hey, How hard would it be to update this to R6? / 0.01?

    Thanks!

    Ps. Is it true they are abandoning Bukkit after 1.3? I find this hard to believe.
     
  8. Offline

    vildaberper

    No problem, I'll update it when I get back to my stationary computer. :]

    Why would they do that? The whole bukkit team just joined Mojang! xD
    If they abandon it, something better will replace it, no worries.

    Edit: What is there to update? Everything should work exactly as before.
     
  9. Offline

    Joannou1


    Oh Damn!
    That was wierd, it wouldn't work, and whaddya know, put it back on, Vwoosh! Works perfectly :p

    My bad!
     

Share This Page