Merge branch 'master' into spigot

This commit is contained in:
sekwah41 2018-02-02 10:41:12 +00:00
commit 83ab90db36
3 changed files with 13 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class PortalManager {
if (this.portalHashMap == null) {
this.portalHashMap = new HashMap<>();
}
this.portalsCore.getDataStorage().storeJson(this.portalHashMap, "config.json");
this.portalsCore.getDataStorage().storeJson(this.portalHashMap, "portals.json");
this.updatePortalArray();
}

View File

@ -1,5 +1,6 @@
package com.sekwah.advancedportals.core.api.portal;
import com.google.gson.annotations.SerializedName;
import com.sekwah.advancedportals.core.AdvancedPortalsCore;
import com.sekwah.advancedportals.core.api.registry.TagRegistry;
import com.sekwah.advancedportals.core.api.warphandler.ActivationData;
@ -16,13 +17,18 @@ import java.util.Set;
* @author sekwah41
*/
public class AdvancedPortal {
@SerializedName("max")
private PortalLocation maxLoc;
@SerializedName("min")
private PortalLocation minLoc;
@SerializedName("t")
private String triggerBlock;
@SerializedName("a")
private HashMap<String, String> args = new HashMap<>();
private transient Set<String> argsCol;
public AdvancedPortal(PortalLocation maxLoc, PortalLocation minLoc) {

View File

@ -1,10 +1,16 @@
package com.sekwah.advancedportals.core.data;
import com.google.gson.annotations.SerializedName;
public class PortalLocation {
@SerializedName("x")
public final int posX;
@SerializedName("y")
public final int posY;
@SerializedName("z")
public final int posZ;
@SerializedName("w")
public final String worldName;
public PortalLocation(String worldName, int posX, int posY, int posZ) {