SHARE
TWEET

Main Class

a guest Mar 13th, 2016 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.lewisjamesadams.plugin;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.plugin.PluginDescriptionFile;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7.  
  8. public class Tutorial extends JavaPlugin {
  9.    
  10.     public void onEnable() {
  11.         PluginDescriptionFile pdfFile = getDescription();
  12.         Logger logger = Logger.getLogger("Minecraft");
  13.        
  14.         logger.info(pdfFile.getName() + " has been enabled!" + pdfFile.getVersion());  
  15.     }
  16.    
  17.     public void onDisable() {
  18.         PluginDescriptionFile pdfFile = getDescription();
  19.         Logger logger = Logger.getLogger("Minecraft");
  20.        
  21.         logger.info(pdfFile.getName() + " has been enabled!" + pdfFile.getVersion());
  22.     }
  23.    
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top