Solved Why does it only read the first method?

Discussion in 'Plugin Development' started by Wither_Style, Jul 29, 2015.

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

    Wither_Style

    So, im trying to make a plugin and i found out that when i throw it in, it only reads the first method (PlayerJoin) and it just ignores the rest. No errors or anything, but it doesnt read them for some reason. Anyone know whats going on? Do I have to link them somehow else?
    Thanks in advance
    Code:
    package me.wither.test.test
    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    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.player.PlayerQuitEvent;
    import org.bukkit.plugin.java.JavaPlugin;
    public class test extends JavaPlugin implements Listener
    {
      public void onEnable()
      {
        Bukkit.getServer().getPluginManager().registerEvents(this, this);
        Bukkit.getServer().getConsoleSender().sendMessage(ChatColor.YELLOW + "SomePLugin >> " + ChatColor.RESET + "is now enabled.");
      }
     
      public void onDisable()
      {
        Bukkit.getServer().getConsoleSender().sendMessage(ChatColor.YELLOW + "SomePlugin>> " + ChatColor.RESET + "is now disabled.");
      }
    @EventHandler
      public void PlayerJoin(PlayerJoinEvent e)
      {
    //stuff here
          }
    public void PlayerJoinBefore(PlayerJoinEvent e)
    {
    //stuff here
        }
    
    public void PlayerQuit(PlayerQuitEvent e)
    {
    //stuff here
            }
    //permission messages
    public void PlayerQuitStaff(PlayerQuitEvent e)
    {
    //morestuffhere
    }
    public void PlayerJoinStaff(PlayerJoinEvent e)
    {
    //more stuff here
            }
    }
    
       
    
     
  2. Offline

    timtower Administrator Administrator Moderator

Thread Status:
Not open for further replies.

Share This Page