setMotd

Discussion in 'Plugin Development' started by Mother__, Mar 7, 2014.

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

    Mother__

    Hi guys when i use event ServerListPingEvent for change motd working fine but he not set motd just when player ping the server.

    How i can set motd like this

    Bukkit.getServer().setMotd("BALBALBLA");

    thx i hope u can help me
     
  2. Offline

    Wizehh

    Are you referring to a custom motd, such as '/motd'?
     
  3. Offline

    Mother__

    No! because i use this https://gist.github.com/Jckf/4574114 and when i get motd show me default motd
    "A Minecraft Server"

    up!@

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  4. Offline

    KevyPorter

    Code:java
    1. @EventHandler
    2. public void listPing(ServerListPingEvent event){
    3. event.setMotd(ChatColor.RED + "test");
    4. }

    That's what I use for my motd
     
Thread Status:
Not open for further replies.

Share This Page