rendered paste bodypackage com.juze.JuzePlugin;import java.io.File;import java.io.IOException;import java.util.logging.Logger;import org.bukkit.plugin.PluginDescriptionFile;import org.bukkit.plugin.java.JavaPlugin;import org.bukkit.util.config.Configuration;public class JuzePlugin extends JavaPlugin { public Configuration config; public final Logger log = Logger.getLogger( "Minecraft" ); private final String LOG_PREFIX = "[JuzePlugin] "; private final String PDF_GETDESCRIPTION = "PluginDescriptionFile pdfFile = this.getDescription();" public void onEnable(){ File yml = new File( getDataFolder() + "/config.yml" ); if( !yml.exists() ) { new File( getDataFolder().toString() ).mkdir(); try { yml.createNewFile(); } catch( IOException e ) { PluginDescriptionFile pdfFile = this.getDescription(); // Redundant code, but required for pdfFile.getName() log.warning( LOG_PREFIX + "Exception: " + e.getMessage() ); log.warning( LOG_PREFIX + "Could not create a configuration file, disabling " + pdfFile.getName()); } } PluginDescriptionFile pdfFile = this.getDescription(); // Redundant code, but required for pdfFile.getName() log.info( pdfFile.getName() + " v" + pdfFile.getVersion() + " enabled." ); } public void onDisable() { PluginDescriptionFile pdfFile = this.getDescription(); // Redundant code, but required for pdfFile.getName() log.info( pdfFile.getName() + " v" + pdfFile.getVersion() + " disabled." ); }}