Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.github.klutch2013.TestPlugin;
- import java.util.logging.Logger;
- 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" );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement