Created
May 15, 2011 08:28
-
-
Save TimWolla/972972 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package de.evilco.example; | |
| import java.util.logging.*; | |
| import org.bukkit.plugin.PluginDescriptionFile; | |
| import org.bukkit.plugin.java.JavaPlugin; | |
| public class Example extends JavaPlugin { | |
| public void onEnable() { | |
| PluginDescriptionFile pdfFile = this.getDescription(); | |
| Logger.getLogger(pdfFile.getName()).log(Level.INFO, pdfFile.getName() + " version " + pdfFile.getVersion() + " enabled"); | |
| } | |
| public void onDisable() { | |
| Logger.getLogger(this.getDescription().getName()).log(Level.INFO, "Unloading"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment