make sure the PlayerMetaDataKeys keys are loaded

This commit is contained in:
Alexander Söderberg 2020-07-24 13:32:46 +02:00
parent dc1f669a1f
commit 97a2ccbfe0
2 changed files with 8 additions and 0 deletions

View File

@ -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
//

View File

@ -54,6 +54,10 @@ public final class PlayerMetaDataKeys {
public static final MetaDataKey<CmdInstance> TEMPORARY_CONFIRM = MetaDataKey.of("cmdConfirm", new TypeLiteral<CmdInstance>() {});
//@formatter:on
public static void load() {
// Do nothing :D
}
private PlayerMetaDataKeys() {
}