package com.ForgeEssentials.util;

import com.ForgeEssentials.api.data.ITaggedClass;
import com.ForgeEssentials.api.data.SaveableObject;
import com.ForgeEssentials.api.data.SaveableObject.Reconstructor;
import com.ForgeEssentials.api.data.SaveableObject.SaveableField;
import com.ForgeEssentials.api.data.SaveableObject.UniqueLoadingKey;
import com.ForgeEssentials.util.AreaSelector.WarpPoint;

@SaveableObject
public class PWarp
{
	@UniqueLoadingKey
	@SaveableField
	private String name;

	@SaveableField
	private WarpPoint point;

	public PWarp(String username, String name, WarpPoint point)
	{
		this.name = username + "" + name;
		this.point = point;
	}

	public String getFilename()
	{
		return name;
	}
	
	public String getUsername()
	{
		return name.split("")[0];
	}
	
	public String getName()
	{
		return name.split("")[1];
	}

	public WarpPoint getPoint()
	{
		return point;
	}

	@Reconstructor
	private static PWarp reconstruct(ITaggedClass tag)
	{
		return new PWarp(((String) tag.getFieldValue("name")).split("")[0], ((String) tag.getFieldValue("name")).split("")[1], (WarpPoint) tag.getFieldValue("point"));
	}
}

@@ -616,16 +616,17 @@
 name + %22
+$
 %22 + name
@@ -627,16 +627,16 @@
 + name;%0A
-
 %09%09this.p
@@ -754,24 +754,25 @@
 name.split(%22
+$
 %22)%5B0%5D;%0A%09%7D%0A%09%0A
@@ -816,24 +816,25 @@
 name.split(%22
+$
 %22)%5B1%5D;%0A%09%7D%0A%0A%09
@@ -1018,16 +1018,17 @@
 .split(%22
+$
 %22)%5B0%5D, (
@@ -1070,16 +1070,17 @@
 .split(%22
+$
 %22)%5B1%5D, (

Update src/FE_SRC_COMMON/com/ForgeEssentials/util/PWarp.java