package com.ForgeEssentials.api.permissions;

import java.util.ArrayList;

import net.minecraft.world.World;

import com.ForgeEssentials.util.FunctionHelper;
import com.ForgeEssentials.util.AreaSelector.AreaBase;
import com.ForgeEssentials.util.AreaSelector.Point;
import com.ForgeEssentials.util.AreaSelector.Selection;
import com.ForgeEssentials.util.AreaSelector.WorldPoint;

public class ZoneManager
{
	//fihgu:
	//TEMP made these infinite loop breeder to return a Fake Zone;
	public static Zone fakeZone = new Zone("Fake Zone");
	
	public static IZoneManager	manager;

	public static Zone getWorldZone(World world)
	{
		return fakeZone;
	}

	public static void deleteZone(String zoneID)
	{
		
	}

	public static boolean doesZoneExist(String zoneID)
	{
		return false;
	}

	public static Zone getZone(String zoneID)
	{
		return fakeZone;
	}

	public static boolean createZone(String zoneID, Selection sel, World world)
	{
		return false;
	}

	public static Zone getWhichZoneIn(Point p, World world)
	{
		return fakeZone;
	}

	public static Zone getWhichZoneIn(WorldPoint point)
	{
		return fakeZone;
	}

	public static Zone getWhichZoneIn(AreaBase area, World world)
	{
		return fakeZone;
	}

	public static ArrayList<Zone> getZoneList()
	{
		ArrayList<Zone> list = new ArrayList<Zone>();
		return list;
	}

	public static Zone getGLOBAL()
	{
		return fakeZone;
	}

	public static Zone getSUPER()
	{
		return fakeZone;
	}
}

@@ -403,138 +403,8 @@
 r%0A%7B%0A
-%09//fihgu:%0A%09//TEMP made these infinite loop breeder to return a Fake Zone;%0A%09public static Zone fakeZone = new Zone(%22Fake Zone%22);%0A%09%0A
 %09pub
@@ -436,16 +436,16 @@
 anager;%0A
+
 %0A%09public
@@ -491,32 +491,51 @@
 %09%7B%0A%09%09return 
-fakeZone
+manager.getWorldZone(world)
 ;%0A%09%7D%0A%0A%09publi
@@ -579,16 +579,43 @@
 D)%0A%09%7B%0A%09%09
+manager.deleteZone(zoneID);
 %0A%09%7D%0A%0A%09pu
@@ -667,37 +667,61 @@
 ID)%0A%09%7B%0A%09%09return 
-false
+manager.doesZoneExist(zoneID)
 ;%0A%09%7D%0A%0A%09public st
@@ -761,32 +761,47 @@
 %09%7B%0A%09%09return 
-fakeZone
+manager.getZone(zoneID)
 ;%0A%09%7D%0A%0A%09publi
@@ -887,13 +887,46 @@
 urn 
-false
+manager.createZone(zoneID, sel, world)
 ;%0A%09%7D
@@ -992,32 +992,56 @@
 %09%7B%0A%09%09return 
-fakeZone
+manager.getWhichZoneIn(p, world)
 ;%0A%09%7D%0A%0A%09publi
@@ -1095,32 +1095,45 @@
 %09%7B%0A%09%09return 
-fakeZone
+getWhichZoneIn(point)
 ;%0A%09%7D%0A%0A%09publi
@@ -1197,32 +1197,59 @@
 %09%7B%0A%09%09return 
-fakeZone
+manager.getWhichZoneIn(area, world)
 ;%0A%09%7D%0A%0A%09publi
@@ -1296,67 +1296,36 @@
 %7B%0A%09%09
-ArrayList%3CZone%3E list = new ArrayList%3CZone%3E();%0A%09%09return l
+return manager.getZoneL
 ist
+()
 ;%0A%09%7D
@@ -1366,32 +1366,43 @@
 %09%7B%0A%09%09return 
-fakeZone
+manager.getGLOBAL()
 ;%0A%09%7D%0A%0A%09publi
@@ -1442,16 +1442,26 @@
 urn 
-fakeZone
+manager.getSUPER()
 ;%0A%09%7D

Revert "This is kinda a bad way to leave your unfinished work."