mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
These files are no longer needed.
This commit is contained in:
parent
b2904df5f6
commit
4ea776da45
@ -1,3 +0,0 @@
|
|||||||
name: vMinecraft
|
|
||||||
version: 1.0
|
|
||||||
main: vMinecraft.vMinecraft
|
|
@ -1,11 +0,0 @@
|
|||||||
package vMinecraft;
|
|
||||||
|
|
||||||
import org.bukkit.event.block.*;
|
|
||||||
import org.bukkit.*;
|
|
||||||
public class vBlockListener extends BlockListener {
|
|
||||||
private vMinecraft plugin;
|
|
||||||
|
|
||||||
public vBlockListener(vMinecraft plugin) {
|
|
||||||
this.plugin = plugin;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,57 +0,0 @@
|
|||||||
package vMinecraft;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
import org.bukkit.plugin.PluginManager;
|
|
||||||
import org.bukkit.Server;
|
|
||||||
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;
|
|
||||||
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() {
|
|
||||||
//Register events
|
|
||||||
registerEvents();
|
|
||||||
|
|
||||||
// Register our events
|
|
||||||
PluginManager pm = getServer().getPluginManager();
|
|
||||||
|
|
||||||
|
|
||||||
// EXAMPLE: Custom code, here we just output some info so we can check all is well
|
|
||||||
PluginDescriptionFile pdfFile = this.getDescription();
|
|
||||||
System.out.println( pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!" );
|
|
||||||
}
|
|
||||||
public void onDisable() {
|
|
||||||
// TODO: Place any custom disable code here
|
|
||||||
|
|
||||||
// NOTE: All registered events are automatically unregistered when a plugin is disabled
|
|
||||||
|
|
||||||
// EXAMPLE: Custom code, here we just output some info so we can check all is well
|
|
||||||
System.out.println("Goodbye world!");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void registerEvents() {
|
|
||||||
//These are the events, as far as I know they work a lot like hooks from hMod... if not exactly
|
|
||||||
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_COMMAND, playerListener, Priority.Normal, this);
|
|
||||||
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_JOIN, playerListener, Priority.Normal, this);
|
|
||||||
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this);
|
|
||||||
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_CHAT, playerListener, Priority.Normal, this);
|
|
||||||
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_TELEPORT, playerListener, Priority.Normal, this);
|
|
||||||
getServer().getPluginManager().registerEvent(Event.Type.BLOCK_IGNITE, blockListener, Priority.Normal, this);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
package vMinecraft;
|
|
||||||
|
|
||||||
import org.bukkit.*;
|
|
||||||
import org.bukkit.event.player.*;
|
|
||||||
public class vPlayerListener extends PlayerListener {
|
|
||||||
private vMinecraft plugin;
|
|
||||||
|
|
||||||
public vPlayerListener(vMinecraft plugin) {
|
|
||||||
this.plugin = plugin;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user