Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package blokirai;
import org.bukkit.Server;
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.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
public class JoinLeave
extends JavaPlugin
implements Listener
{
public void onEnable()
{
getServer().getPluginManager().registerEvents(this, this);
}
public void onDisable() {}
@EventHandler
public void onJoin(PlayerJoinEvent event)
{
event.setJoinMessage(null);
}
@EventHandler
public void onQuit(PlayerQuitEvent event)
{
event.setQuitMessage(null);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment