diff --git a/src/com/sekwah/advancedportals/AdvancedPortalsCommand.java b/src/com/sekwah/advancedportals/AdvancedPortalsCommand.java index 334b64f8..9c39f46a 100644 --- a/src/com/sekwah/advancedportals/AdvancedPortalsCommand.java +++ b/src/com/sekwah/advancedportals/AdvancedPortalsCommand.java @@ -1,9 +1,9 @@ package com.sekwah.advancedportals; +import com.sekwah.advancedportals.api.portaldata.PortalArg; import com.sekwah.advancedportals.listeners.Listeners; import com.sekwah.advancedportals.portals.AdvancedPortal; import com.sekwah.advancedportals.portals.Portal; -import com.sekwah.advancedportals.portals.PortalArg; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.World; diff --git a/src/com/sekwah/advancedportals/api/PortalArg.java b/src/com/sekwah/advancedportals/api/portaldata/PortalArg.java similarity index 87% rename from src/com/sekwah/advancedportals/api/PortalArg.java rename to src/com/sekwah/advancedportals/api/portaldata/PortalArg.java index 238db28b..47676a49 100644 --- a/src/com/sekwah/advancedportals/api/PortalArg.java +++ b/src/com/sekwah/advancedportals/api/portaldata/PortalArg.java @@ -1,4 +1,4 @@ -package com.sekwah.advancedportals.api; +package com.sekwah.advancedportals.api.portaldata; public class PortalArg { diff --git a/src/com/sekwah/advancedportals/api/PortalTags.java b/src/com/sekwah/advancedportals/api/portaldata/PortalTags.java similarity index 94% rename from src/com/sekwah/advancedportals/api/PortalTags.java rename to src/com/sekwah/advancedportals/api/portaldata/PortalTags.java index c613c657..994f745f 100644 --- a/src/com/sekwah/advancedportals/api/PortalTags.java +++ b/src/com/sekwah/advancedportals/api/portaldata/PortalTags.java @@ -1,4 +1,4 @@ -package com.sekwah.advancedportals.api; +package com.sekwah.advancedportals.api.portaldata; import java.util.ArrayList; import java.util.HashMap; diff --git a/src/com/sekwah/advancedportals/api/registry/TagInfo.java b/src/com/sekwah/advancedportals/api/registry/TagInfo.java new file mode 100644 index 00000000..4eaf9bf7 --- /dev/null +++ b/src/com/sekwah/advancedportals/api/registry/TagInfo.java @@ -0,0 +1,16 @@ +package com.sekwah.advancedportals.api.registry; + +/** + * Created by on 25/07/2016. + * + * @author sekwah41 + */ +public class TagInfo { + + private final String dataType; + + public TagInfo(String tag, String dataType){ + this.dataType = dataType; + } + +} diff --git a/src/com/sekwah/advancedportals/api/registry/TagRegistry.java b/src/com/sekwah/advancedportals/api/registry/TagRegistry.java new file mode 100644 index 00000000..3db0849a --- /dev/null +++ b/src/com/sekwah/advancedportals/api/registry/TagRegistry.java @@ -0,0 +1,25 @@ +package com.sekwah.advancedportals.api.registry; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; + +/** + * Created by on 25/07/2016. + * + * @author sekwah41 + */ +public class TagRegistry { + + private ArrayList tags = new ArrayList(); + + private Map tagDesc = new HashMap(); + + public TagRegistry(){ + + } + + + + +} diff --git a/src/com/sekwah/advancedportals/portals/AdvancedPortal.java b/src/com/sekwah/advancedportals/portals/AdvancedPortal.java index 7aa6cba3..3f8453d2 100644 --- a/src/com/sekwah/advancedportals/portals/AdvancedPortal.java +++ b/src/com/sekwah/advancedportals/portals/AdvancedPortal.java @@ -1,5 +1,6 @@ package com.sekwah.advancedportals.portals; +import com.sekwah.advancedportals.api.portaldata.PortalArg; import java.util.HashSet; import org.bukkit.Location; import org.bukkit.Material; diff --git a/src/com/sekwah/advancedportals/portals/ArgRegistry.java b/src/com/sekwah/advancedportals/portals/ArgRegistry.java deleted file mode 100644 index 315f49aa..00000000 --- a/src/com/sekwah/advancedportals/portals/ArgRegistry.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.sekwah.advancedportals.portals; - -/** - * Created by on 29/02/2016. - *

- * TODO create argument registry for easier altering and control :) also allows other coders to add custom args - * - * @author sekwah41 - */ -public class ArgRegistry { - - -} diff --git a/src/com/sekwah/advancedportals/portals/Portal.java b/src/com/sekwah/advancedportals/portals/Portal.java index 6d459fb8..686847c7 100644 --- a/src/com/sekwah/advancedportals/portals/Portal.java +++ b/src/com/sekwah/advancedportals/portals/Portal.java @@ -13,6 +13,7 @@ import org.bukkit.World; import org.bukkit.configuration.ConfigurationSection; import org.bukkit.entity.Player; import org.bukkit.permissions.PermissionAttachment; +import com.sekwah.advancedportals.api.portaldata.PortalArg; import java.util.ArrayList; import java.util.HashMap;