Don't show coords based on gamerule

This commit is contained in:
Magnus Ulf
2019-10-12 11:57:25 +02:00
parent ecbb4c1a43
commit fe7bd41455
3 changed files with 24 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
package com.massivecraft.factions.cmd;
import com.massivecraft.factions.util.AsciiMap;
import com.massivecraft.factions.util.VisualizeUtil;
import com.massivecraft.massivecore.command.requirement.RequirementIsPlayer;
import com.massivecraft.massivecore.ps.PS;
@@ -58,7 +59,9 @@ public class CmdFactionsSeeChunkOld extends FactionsCommand
showPillar(me, world, blockX, blockZ);
// Inform
msg("<i>Visualized %s", chunk.toString(PSFormatHumanSpace.get()));
boolean showCoords = AsciiMap.showChunkCoords(chunk);
String chunkDesc = showCoords ? chunk.toString(PSFormatHumanSpace.get()) : "chunk";
msg("<i>Visualized %s", chunkDesc);
}
public static void showPillar(Player player, World world, int blockX, int blockZ)