summaryrefslogtreecommitdiff
path: root/src/main/java/com/encrox/instancedregions/InstancedRegions.java
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2022-04-25 18:41:24 +0200
committerLeonard Kugis <leonard@kug.is>2022-04-25 18:41:24 +0200
commit7abf31ea821a0bbddb836adb1a63d0fec2ceee4f (patch)
treead9f4f4a1e6bbf5000b8eeb78180eed3923d72e7 /src/main/java/com/encrox/instancedregions/InstancedRegions.java
Initial commitHEADmaster
Diffstat (limited to 'src/main/java/com/encrox/instancedregions/InstancedRegions.java')
-rwxr-xr-xsrc/main/java/com/encrox/instancedregions/InstancedRegions.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/main/java/com/encrox/instancedregions/InstancedRegions.java b/src/main/java/com/encrox/instancedregions/InstancedRegions.java
new file mode 100755
index 0000000..320fcad
--- /dev/null
+++ b/src/main/java/com/encrox/instancedregions/InstancedRegions.java
@@ -0,0 +1,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;
+ }
+
+}