Advertisement
Guest User

Main.java

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