From ad40ab7e1edb1d1dcac7ac50cd4bee6cfcc336a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Thu, 23 Jul 2020 19:26:29 +0200 Subject: [PATCH] Grant plots to the correct player --- Core/src/main/java/com/plotsquared/core/command/Grant.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Grant.java b/Core/src/main/java/com/plotsquared/core/command/Grant.java index 429e97168..ad9d09b42 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Grant.java +++ b/Core/src/main/java/com/plotsquared/core/command/Grant.java @@ -83,7 +83,7 @@ public class Grant extends Command { final UUID uuid = uuids.toArray(new UUID[0])[0]; PlotPlayer pp = PlotSquared.platform().getPlayerManager().getPlayerIfExists(uuid); if (pp != null) { - try (final MetaDataAccess access = player.accessPersistentMetaData( + try (final MetaDataAccess access = pp.accessPersistentMetaData( PlayerMetaDataKeys.GRANTED_PLOTS)) { if (args[0].equalsIgnoreCase("check")) { Captions.GRANTED_PLOTS.send(player, access.get().orElse(0));