summaryrefslogtreecommitdiff
path: root/src/main/java/com/encrox/instancedregions/InstancedRegions.java
blob: 320fcad7d61f565de1a426340c4f430d1b9e4e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.encrox.instancedregions;

import java.util.ArrayList;
import java.util.logging.Logger;

import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;

import com.comphenix.protocol.ProtocolManager;
import com.sk89q.worldedit.bukkit.WorldEditPlugin;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;

public class InstancedRegions extends JavaPlugin {
	
	public static Logger logger;
	public static PluginDescriptionFile pdf;
	public static WorldGuardPlugin wg;
	public static WorldEditPlugin we;
	public static ProtocolManager pmgr;
	
	//test
	public static ArrayList<InstancedProtectedCuboidRegion> region;
	
	public void onEnable() {
		pdf = getDescription();
		logger = Logger.getLogger("Minecraft");
		if(setupMyself()) {
			getCommand("instance").setExecutor(new Commander(this));
			logger.info(pdf.getName() + " " + pdf.getVersion() + " has been enabled.");
		} else {
			logger.info(pdf.getName() + " " + pdf.getVersion() + " has been disabled.");
		}
	}
	
	private boolean setupMyself() {
		region = new ArrayList<InstancedProtectedCuboidRegion>();
		return true;
	}

}