Advertisement
Guest User

Main.java

a guest
May 25th, 2015
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. package com.skin_98.plugins.FreeItem;
  2.  
  3. import org.bukkit.event.Listener;
  4. import org.bukkit.plugin.PluginDescriptionFile;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. public class Main extends JavaPlugin implements Listener {
  8.  
  9.     @Override
  10.     public void onEnable() {
  11.         PluginDescriptionFile pdfFile = this.getDescription();
  12.         System.out.println("[" + pdfFile.getName() + "] v" + pdfFile.getVersion() + " elindult! By: " + pdfFile.getAuthors());
  13.         this.getServer().getPluginManager().registerEvents(new SignListener(), this);
  14.     }
  15.    
  16.     @Override
  17.     public void onDisable() {
  18.         PluginDescriptionFile pdfFile = this.getDescription();
  19.         System.out.println("[" + pdfFile.getName() + "] v" + pdfFile.getVersion() + " leallt! By: " + pdfFile.getAuthors());
  20.     }
  21.    
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement