I was "hardworking" on the code and wanted to register a PlayerChatEvent and as you will see in the screenshot now (in my opinion) there's something "wrong"
Here is the screenshot
[Img]
Scourcecode:
package me.gamerzocktyt.main;
import org.bukkit.Bukkit; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin {public static String pre = "§cSystem §8" "; public void onEnable () {Bukkit.getConsoleSender (). SendMessage ("§a Plugin Enabled"); } public void onDisable () {Bukkit.getConsoleSender (). SendMessage ("§c plugin disabled!"); } // Command register // // Listener register // PluginManager pm = Bukkit.getPluginManager (); pm.registerEvents (new PlayerChatEvent (), this);
What does the error (I think hover over the cross)?
I suspect Eclipse will even suggest a bug fix.
You can hover on the code then it displays an error description.
You should probably implement the Bukkit Event Listener in both classes.
public class Main extends JavaPlugin implements Listener {