From 05cfd5d8b0efea301157a16869b0d4159eb0ff9d Mon Sep 17 00:00:00 2001 From: Driftay Date: Tue, 31 Dec 2019 02:20:33 -0500 Subject: [PATCH] Added AutoUpdating FMap on Click to Claim --- .../com/massivecraft/factions/cmd/claim/CmdClaimAt.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/cmd/claim/CmdClaimAt.java b/src/main/java/com/massivecraft/factions/cmd/claim/CmdClaimAt.java index efc202af..7cf7244f 100644 --- a/src/main/java/com/massivecraft/factions/cmd/claim/CmdClaimAt.java +++ b/src/main/java/com/massivecraft/factions/cmd/claim/CmdClaimAt.java @@ -1,5 +1,6 @@ package com.massivecraft.factions.cmd.claim; +import com.massivecraft.factions.Board; import com.massivecraft.factions.Conf; import com.massivecraft.factions.FLocation; import com.massivecraft.factions.FactionsPlugin; @@ -40,6 +41,11 @@ public class CmdClaimAt extends FCommand { FLocation location = new FLocation(context.argAsString(0), x, z); context.fPlayer.attemptClaim(context.faction, location, true); FactionsPlugin.instance.logFactionEvent(context.fPlayer.getFaction(), FLogType.CHUNK_CLAIMS, context.fPlayer.getName(), CC.GreenB + "CLAIMED", "1", (location).formatXAndZ(",")); + showMap(context); + } + + public void showMap(CommandContext context) { + context.sendFancyMessage(Board.getInstance().getMap(context.fPlayer, new FLocation(context.fPlayer), context.player.getLocation().getYaw())); }