Java Bukkit Plugin Tutorial: TNT Blocking - Project Set-up [

Any help topics that don't fit in the current categories can go here.
Post Reply
mtjaxter
Posts: 1
Joined: Sat Oct 08, 2011 12:19 am

Java Bukkit Plugin Tutorial: TNT Blocking - Project Set-up [

Post by mtjaxter »

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
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.TNTNotifier
so if you find somethin wrong, let me know... The main: is just made up, cause I didn't know what to put exactly...
Last edited by jacek on Sat Oct 08, 2011 9:44 pm, edited 1 time in total.
Reason: code tags...
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Java Bukkit Plugin Tutorial: TNT Blocking - Project Set-

Post by jacek »

What is the problem ?
Image
Post Reply