mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Ch-Ch-Changes
This commit is contained in:
parent
985b49b668
commit
7965d1b63e
3
plugin.yml
Normal file
3
plugin.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name: vMinecraft
|
||||||
|
version: 1.0
|
||||||
|
main: vMinecraft.vMinecraft
|
@ -1,3 +1,5 @@
|
|||||||
|
package vMinecraft;
|
||||||
|
|
||||||
import org.bukkit.event.block.*;
|
import org.bukkit.event.block.*;
|
||||||
import org.bukkit.*;
|
import org.bukkit.*;
|
||||||
public class vBlockListener extends BlockListener {
|
public class vBlockListener extends BlockListener {
|
||||||
|
@ -1,21 +1,32 @@
|
|||||||
|
package vMinecraft;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.HashMap;
|
import java.util.logging.Logger;
|
||||||
//Needed for using Color
|
import org.bukkit.plugin.PluginManager;
|
||||||
import org.bukkit.Color;
|
|
||||||
import org.bukkit.Player;
|
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.event.Event.Priority;
|
|
||||||
import org.bukkit.event.Event;
|
import org.bukkit.event.Event;
|
||||||
|
import org.bukkit.event.Event.Priority;
|
||||||
import org.bukkit.plugin.PluginDescriptionFile;
|
import org.bukkit.plugin.PluginDescriptionFile;
|
||||||
import org.bukkit.plugin.PluginLoader;
|
import org.bukkit.plugin.PluginLoader;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.bukkit.plugin.PluginManager;
|
|
||||||
public class vMinecraft extends JavaPlugin {
|
public class vMinecraft extends JavaPlugin {
|
||||||
|
|
||||||
private vPlayerListener playerListener;
|
private vPlayerListener playerListener;
|
||||||
private vBlockListener blockListener;
|
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() {
|
public void onEnable() {
|
||||||
// TODO: Place any custom enable code here including the registration of any events
|
//Register events
|
||||||
|
registerEvents();
|
||||||
|
|
||||||
// Register our events
|
// Register our events
|
||||||
PluginManager pm = getServer().getPluginManager();
|
PluginManager pm = getServer().getPluginManager();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
package vMinecraft;
|
||||||
|
|
||||||
import org.bukkit.*;
|
import org.bukkit.*;
|
||||||
import org.bukkit.event.player.*;
|
import org.bukkit.event.player.*;
|
||||||
public class vPlayerListener extends PlayerListener {
|
public class vPlayerListener extends PlayerListener {
|
||||||
@ -6,4 +8,5 @@ public class vPlayerListener extends PlayerListener {
|
|||||||
public vPlayerListener(vMinecraft plugin) {
|
public vPlayerListener(vMinecraft plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user