Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Now i Fixed Everything that said this.Logger to this.logger
- //now i have just a 3 errors left
- //this is the Errors on helloworld.java
- //Image: http://dl.dropbox.com/u/3104034/almostthere%21.png
- //Code:
- package com.github.klutch2013.TestPlugin;
- import java.util.logging.Logger;
- import org.bukkit.event.Event;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- public class helloworld extends JavaPlugin{
- public static helloworld plugin;
- public final Logger logger = Logger.getLogger("Minecraft");
- public final ServerChatPlayerListener playerListener = new ServerChatPlayerListener(this);
- @Override
- public void onDisable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + " is now disabled. ");
- }
- @Override
- public void onEnable() {
- PluginManager pm = getServer().getPluginManager();
- pm.registerEvents(this.playerListener, this);
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " is enabled" );
- }
- }
- //The ServerChatPlayerListener.java file has no errors now.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement