Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.skin_98.plugins.FreeItem;
- import org.bukkit.event.Listener;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Main extends JavaPlugin implements Listener {
- @Override
- public void onEnable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- System.out.println("[" + pdfFile.getName() + "] v" + pdfFile.getVersion() + " elindult! By: " + pdfFile.getAuthors());
- this.getServer().getPluginManager().registerEvents(new SignListener(), this);
- }
- @Override
- public void onDisable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- System.out.println("[" + pdfFile.getName() + "] v" + pdfFile.getVersion() + " leallt! By: " + pdfFile.getAuthors());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement