diff --git a/plugin.yml b/plugin.yml new file mode 100644 index 000000000..d929a2a4e --- /dev/null +++ b/plugin.yml @@ -0,0 +1,3 @@ +name: vMinecraft +version: 1.0 +main: vMinecraft.vMinecraft \ No newline at end of file diff --git a/vBlockListener.java b/vBlockListener.java index 0036da9e7..6c3d572b0 100644 --- a/vBlockListener.java +++ b/vBlockListener.java @@ -1,3 +1,5 @@ +package vMinecraft; + import org.bukkit.event.block.*; import org.bukkit.*; public class vBlockListener extends BlockListener { diff --git a/vMinecraft.java b/vMinecraft.java index 135cd0b9d..021b17b0d 100644 --- a/vMinecraft.java +++ b/vMinecraft.java @@ -1,21 +1,32 @@ +package vMinecraft; + import java.io.File; -import java.util.HashMap; -//Needed for using Color -import org.bukkit.Color; -import org.bukkit.Player; +import java.util.logging.Logger; +import org.bukkit.plugin.PluginManager; import org.bukkit.Server; -import org.bukkit.event.Event.Priority; import org.bukkit.event.Event; +import org.bukkit.event.Event.Priority; import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.PluginLoader; import org.bukkit.plugin.java.JavaPlugin; -import org.bukkit.plugin.PluginManager; public class vMinecraft extends JavaPlugin { + private vPlayerListener playerListener; private vBlockListener blockListener; +public static Logger log; +public final static String name = "vMinecraft"; +public final static String version = "1.0"; + +//We need this public/super stuff, not sure why +public vMinecraft(PluginLoader pluginLoader, Server instance, File plugin, PluginDescriptionFile desc, ClassLoader cLoader) { +super(pluginLoader, instance, desc, plugin, cLoader); +// TODO Auto-generated constructor stub +} +private vMinecraft plugin; public void onEnable() { - // TODO: Place any custom enable code here including the registration of any events + //Register events + registerEvents(); // Register our events PluginManager pm = getServer().getPluginManager(); diff --git a/vPlayerListener.java b/vPlayerListener.java index f815733c6..0960d9744 100644 --- a/vPlayerListener.java +++ b/vPlayerListener.java @@ -1,3 +1,5 @@ +package vMinecraft; + import org.bukkit.*; import org.bukkit.event.player.*; public class vPlayerListener extends PlayerListener { @@ -6,4 +8,5 @@ public class vPlayerListener extends PlayerListener { public vPlayerListener(vMinecraft plugin) { this.plugin = plugin; } + }