MOTD not working[READ ME FIRST!!!!!!]

Discussion in 'Spigot Plugin 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. @EventHandler(priority = EventPriority.LOWEST)
     
  3. this is not working
     
  4. What plugins are installed on the server?
     
  5. Sorry:
    public void onEnble(){

    replace by onEnable()