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 net.md_5.bungee.api.ChatColor;

    public class MOTD extends JavaPlugin implements Listener{
        public void onEnble(){
            this.getServer().getPluginManager().registerEvents(this, this);
        public void onDisable(){
        public void onPlayerJoin(PlayerJoinEvent e){
            Player p = e.getPlayer();
            p.sendMessage(ChatColor.DARK_PURPLE + "Welcome to the server!");
        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()