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] 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() { }