MOTD NOT WORKING. HELP ME !!

Discussion in 'Spigot Help' started by Womas_L, Jun 7, 2017.

  1. So, I coded a MOTD plugin. And it's not working. I will show u my code.

    Code (Text):
    package me.Womas_L.MOTD;

    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.Listener;
    import org.bukkit.event.player.PlayerJoinEvent;
    import org.bukkit.event.server.ServerListPingEvent;
    import org.bukkit.plugin.java.JavaPlugin;
    import net.md_5.bungee.api.ChatColor;

    public class MOTD extends JavaPlugin implements Listener{
       
        public void onEnble(){
           
            getLogger().info("enble");
            this.getServer().getPluginManager().registerEvents(this, this);
           
        }
       
        public void onDisable(){
           
            getLogger().info("disable");
           
        }
       
        @EventHandler
        public void onPlayerJoin(PlayerJoinEvent e){
           
            Player p = e.getPlayer();
            p.sendMessage(ChatColor.DARK_PURPLE + "Welcome to the server!");
        }      
           
        @EventHandler
        public void onServerPing(ServerListPingEvent e){
           
            e.setMotd(ChatColor.YELLOW + "Womas the best!!");
           
        }
    }

    Code (Text):
    name: MOTD
    main: me.Womas_L.MOTD.MOTD
    version: 1.0
    author: Womas_L
    description: A MOTD
     
  2. replace onEnble by onEnable
     
    • Agree Agree x 2
  3. Nice catch lol. Totally overlooked that one. :D
     
    • Funny Funny x 1