Added FLog For Claiming Single Chunk

This commit is contained in:
Driftay 2019-12-31 01:40:04 -05:00
parent ccb2dae890
commit 4222dd9689

View File

@ -61,6 +61,7 @@ public class CmdClaim extends FCommand {
if (radius < 2) { if (radius < 2) {
// single chunk // single chunk
context.fPlayer.attemptClaim(forFaction, context.player.getLocation(), true); context.fPlayer.attemptClaim(forFaction, context.player.getLocation(), true);
FactionsPlugin.instance.logFactionEvent(forFaction, FLogType.CHUNK_CLAIMS, context.fPlayer.getName(), CC.GreenB + "CLAIMED", "1", (new FLocation(context.fPlayer.getPlayer().getLocation())).formatXAndZ(","));
} else { } else {
// radius claim // radius claim
if (!Permission.CLAIM_RADIUS.has(context.sender, true)) { if (!Permission.CLAIM_RADIUS.has(context.sender, true)) {