Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.drkprodigy69.learning;
- import java.util.logging.Logger;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Learning extends JavaPlugin{
- public final Logger logger = Logger.getLogger("Minecraft");
- public static Learning plugin;
- public final MyBlockListener bl = new MyBlockListener(this);
- @Override
- public void onDisable() {
- PluginDescriptionFile pdffile = this.getDescription();
- this.logger.info(pdffile.getName() + "Has Been Disabled!");
- }
- @Override
- public void onEnable() {
- PluginDescriptionFile pdffile = this.getDescription();
- this.logger.info(pdffile.getName() +" Version " + pdffile.getVersion() + " Has Been Enabled! ");
- PluginManager pm = getServer().getPluginManager();
- pm.registerEvents(bl, this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement