MOTD

Discussion in 'Plugin Development' started by gamemakertim, Jul 2, 2012.

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

    gamemakertim

    How to change the MOTD on the ping event by a command?
     
  2. Offline

    EnvisionRed

    Uh....what?
     
  3. you can chance it inside the org.bukkit.event.server.ServerListPingEvent, do
    ServerListPingEvent event;event.setMotd("");
    ^pshedo code
     
  4. Offline

    gamemakertim

    Code:
        @EventHandler(priority = EventPriority.HIGHEST)
        public void MOTD(ServerListPingEvent event){
            event.setMotd("Hoi");
        }
    i has used this code, but the motd isn't Hoi...
     
  5. you have registered the listener?
     
  6. Offline

    gamemakertim

    yep, there are standing a lot of other events like :
    Code:
        @EventHandler(priority = EventPriority.HIGHEST)
        public void Dood(PlayerDeathEvent e){
            Player pl = (Player)e.getEntity();
            pl.getInventory().clear();   
            e.setDeathMessage(pl.getDisplayName() + "" + Res + " is dood gegaan!");
            pl.kickPlayer("Je mag niet dood gaan!");
        }
    and they are working perfect

    NVM, i reload and it worked :S

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
Thread Status:
Not open for further replies.

Share This Page