Ch-Ch-Changes

This commit is contained in:
nossr50 2011-01-13 12:34:19 -08:00
parent 985b49b668
commit 7965d1b63e
4 changed files with 26 additions and 7 deletions

3
plugin.yml Normal file
View File

@ -0,0 +1,3 @@
name: vMinecraft
version: 1.0
main: vMinecraft.vMinecraft

View File

@ -1,3 +1,5 @@
package vMinecraft;
import org.bukkit.event.block.*;
import org.bukkit.*;
public class vBlockListener extends BlockListener {

View File

@ -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();

View File

@ -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;
}
}