Java Bukkit Plugin Tutorial: TNT Blocking - Project Set-up [
Posted: Sat Oct 08, 2011 12:21 am
I was doing the tutorial of part 1 video. You said post my information into the forums, I didn't know which forum exactly so i figured I'd post it here ..
HERE is what I have in the TNTNotifier.java
HERE is what I have in the TNTNotifier.java
package en.us.jaxter.bukkit; import java.util.logging.Logger; import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.java.JavaPlugin; public class TNTNotifier extends JavaPlugin { private Logger log = Logger.getLogger("Minecraft"); public void onEnable() { this.logMessage("Enabled."); } public void onDisable() { this.logMessage("Disabled."); } protected void logMessage(String msg){ PluginDescriptionFile pdFile = this.getDescription(); this.log.info(pdFile.getName() + " " + pdFile.getVersion() + ": " + msg); } }and then here is what I have in the plugin.yml
name: TNTNotifier version: 0.1 main: en.us.jaxter.bukkit.TNTNotifierso if you find somethin wrong, let me know... The main: is just made up, cause I didn't know what to put exactly...