From d8125eb0d2876bec4936f47404324e3184d8c2de Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Sat, 10 Feb 2018 17:03:31 -0800 Subject: [PATCH] Max mapheight is 2x default --- src/main/java/com/massivecraft/factions/cmd/CmdMapHeight.java | 2 +- .../com/massivecraft/factions/zcore/persist/MemoryFPlayer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdMapHeight.java b/src/main/java/com/massivecraft/factions/cmd/CmdMapHeight.java index 648061c1..7563f63e 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdMapHeight.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdMapHeight.java @@ -28,7 +28,7 @@ public class CmdMapHeight extends FCommand { int height = argAsInt(0); fme.setMapHeight(height); - fme.sendMessage(TL.COMMAND_MAPHEIGHT_SET.format(height)); + fme.sendMessage(TL.COMMAND_MAPHEIGHT_SET.format(fme.getMapHeight())); } @Override diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java index 8952985c..a199370a 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java @@ -921,7 +921,7 @@ public abstract class MemoryFPlayer implements FPlayer { } public void setMapHeight(int height) { - this.mapHeight = height; + this.mapHeight = height > Conf.mapHeight * 2 ? Conf.mapHeight * 2 : height; } public String getNameAndTitle(FPlayer fplayer) {