From 95f2a7a908f24af22b88d7ce3e1557b8ace4e551 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Fri, 24 Jul 2020 12:22:13 +0100 Subject: [PATCH 1/2] fix version --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 806f85e47..66c39ddbc 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,7 @@ ext { } def ver = "6.0.0" -def versuffix = "SUPER-SNAPSHOT" +def versuffix = "-SUPER-SNAPSHOT" ext { if (project.hasProperty("versionsuffix")) { versuffix = "-$versionsuffix" From 97a2ccbfe01cd408f260fa8bf647f6dbc7226d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Fri, 24 Jul 2020 13:32:46 +0200 Subject: [PATCH 2/2] make sure the PlayerMetaDataKeys keys are loaded --- Core/src/main/java/com/plotsquared/core/PlotSquared.java | 4 ++++ .../java/com/plotsquared/core/player/PlayerMetaDataKeys.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Core/src/main/java/com/plotsquared/core/PlotSquared.java b/Core/src/main/java/com/plotsquared/core/PlotSquared.java index 5bd8e3287..25737ec72 100644 --- a/Core/src/main/java/com/plotsquared/core/PlotSquared.java +++ b/Core/src/main/java/com/plotsquared/core/PlotSquared.java @@ -45,6 +45,7 @@ import com.plotsquared.core.generator.IndependentPlotGenerator; import com.plotsquared.core.inject.factory.HybridPlotWorldFactory; import com.plotsquared.core.listener.PlotListener; import com.plotsquared.core.location.Location; +import com.plotsquared.core.player.PlayerMetaDataKeys; import com.plotsquared.core.plot.BlockBucket; import com.plotsquared.core.plot.Plot; import com.plotsquared.core.plot.PlotArea; @@ -162,6 +163,9 @@ public class PlotSquared { this.platform = iPlotMain; Settings.PLATFORM = platform; + // Initialize the class + PlayerMetaDataKeys.load(); + // // Register configuration serializable classes // diff --git a/Core/src/main/java/com/plotsquared/core/player/PlayerMetaDataKeys.java b/Core/src/main/java/com/plotsquared/core/player/PlayerMetaDataKeys.java index d45e0aa60..f936d17a1 100644 --- a/Core/src/main/java/com/plotsquared/core/player/PlayerMetaDataKeys.java +++ b/Core/src/main/java/com/plotsquared/core/player/PlayerMetaDataKeys.java @@ -54,6 +54,10 @@ public final class PlayerMetaDataKeys { public static final MetaDataKey TEMPORARY_CONFIRM = MetaDataKey.of("cmdConfirm", new TypeLiteral() {}); //@formatter:on + public static void load() { + // Do nothing :D + } + private PlayerMetaDataKeys() { }