[Purpur Changes] PlazmaMC/Purpur@ceeec1c: work PlazmaMC/Purpur@e8f8f93: Updated Upstream (Paper, Pufferfish) [Paper Changes] PaperMC/Paper@f175193: Expose server build information (#10729) PaperMC/Paper@d8d59e0: Fix NPE sending resource pack without prompt PaperMC/Paper@5a9afbe: Fixes issues in the suppress dismount cancellation patch (#10735) PaperMC/Paper@0ad09de: Make PaperSimplePluginClassLoader show class which is not found PaperMC/Paper@b3b3406: fix CompassMeta not being correct (#10737) PaperMC/Paper@591521e: Check for more correct profile validation (#10730) PaperMC/Paper@7d2e5c3: Add an 'empty' RecipeChoice for certain ingredient slots (#10710) PaperMC/Paper@9bf4855: Add a better warning message than "Server performance will be affected" for CommandRegisteredEvent use (#10754) PaperMC/Paper@66cb880: Remove ThreadedWorldUpgrader patch PaperMC/Paper@980cff9: Fix compile PaperMC/Paper@d3ffa62: fix default item attributes PaperMC/Paper@b149584: Always show command exception stack traces in logs (#10766) PaperMC/Paper@a9201d4: [ci skip] Move logic in our patches to ItemType/BlockType (#10772) PaperMC/Paper@3de408e: Fix equipment slot and group API (#10767) PaperMC/Paper@d408381: Print CommandRegisteredEvent deprecation warnings again (#10756) PaperMC/Paper@6de7a1f: Improve default item attributes API (#10765) PaperMC/Paper@2a90732: Remove incorrect logic for Fireball#setVelocity (#10764) PaperMC/Paper@5e7b65a: Allow using PluginLoader classpath API from Bukkit plugins (#10758) PaperMC/Paper@3004717: Do not re-wrap vanilla goals (#10751) PaperMC/Paper@377733d: Use getter/setter on Mob for equipment drop chances (#10780) PaperMC/Paper@dff591d: Allow to define new map cursor types (#10782) PaperMC/Paper@4fd3ac0: [ci skip] Update Player#getListeningPluginChannels Jdoc (#10778) PaperMC/Paper@535dca5: Fix a few issues with ItemMeta (#10740) PaperMC/Paper@26e90b9: Fix CraftMetaBlockState for data components (#10731) PaperMC/Paper@f0bd0cc: Expose anvil cost in the API (#10682) PaperMC/Paper@41bee55: Fix NPE for color-related metas PaperMC/Paper@4e10fad: reset meta block state on BlockStateMeta#setBlockState
106 lines
3.0 KiB
Diff
106 lines
3.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: AlphaKR93 <dev@alpha93.kr>
|
|
Date: Sun, 5 Nov 2023 10:47:05 +0900
|
|
Subject: [PATCH] Setup basic configuration sections
|
|
|
|
|
|
diff --git a/src/main/java/org/plazmamc/plazma/configurations/GlobalConfiguration.java b/src/main/java/org/plazmamc/plazma/configurations/GlobalConfiguration.java
|
|
index d8006ae086c18a4ef43906d516eba0d5fd397f5f..57d29f8f3bc89529db9ee8f6dc3fffdbd4a03ceb 100644
|
|
--- a/src/main/java/org/plazmamc/plazma/configurations/GlobalConfiguration.java
|
|
+++ b/src/main/java/org/plazmamc/plazma/configurations/GlobalConfiguration.java
|
|
@@ -3,6 +3,7 @@ package org.plazmamc.plazma.configurations;
|
|
import io.papermc.paper.configuration.Configuration;
|
|
import io.papermc.paper.configuration.ConfigurationPart;
|
|
import org.jetbrains.annotations.NotNull;
|
|
+import org.spongepowered.configurate.objectmapping.meta.PostProcess;
|
|
import org.spongepowered.configurate.objectmapping.meta.Setting;
|
|
|
|
@SuppressWarnings({"CanBeFinal", "FieldCanBeLocal", "FieldMayBeFinal", "InnerClassMayBeStatic"})
|
|
@@ -23,4 +24,43 @@ public class GlobalConfiguration extends ConfigurationPart {
|
|
@Setting(Configuration.VERSION_FIELD)
|
|
int version = VERSION;
|
|
|
|
+ public Player player;
|
|
+ public class Player extends ConfigurationPart {
|
|
+
|
|
+
|
|
+ }
|
|
+
|
|
+ @Setting("world-generation")
|
|
+ public WorldGeneration worldgen;
|
|
+ public class WorldGeneration extends ConfigurationPart {
|
|
+
|
|
+
|
|
+ }
|
|
+
|
|
+ public Entity entity;
|
|
+ public class Entity extends ConfigurationPart {
|
|
+
|
|
+
|
|
+ @PostProcess
|
|
+ public void post() {
|
|
+ }
|
|
+
|
|
+ }
|
|
+
|
|
+ public World world;
|
|
+ public class World extends ConfigurationPart {
|
|
+
|
|
+
|
|
+ @PostProcess
|
|
+ public void post() {
|
|
+ }
|
|
+
|
|
+ }
|
|
+
|
|
+ public Miscellaneous misc;
|
|
+ public class Miscellaneous extends ConfigurationPart {
|
|
+
|
|
+
|
|
+ }
|
|
+
|
|
}
|
|
diff --git a/src/main/java/org/plazmamc/plazma/configurations/WorldConfigurations.java b/src/main/java/org/plazmamc/plazma/configurations/WorldConfigurations.java
|
|
index f2d3d51cb4b8fc7a5fd6db1a63289fff6d32a1ea..8dce68cf7769fcd5ea03be32621ccb6bab174697 100644
|
|
--- a/src/main/java/org/plazmamc/plazma/configurations/WorldConfigurations.java
|
|
+++ b/src/main/java/org/plazmamc/plazma/configurations/WorldConfigurations.java
|
|
@@ -19,4 +19,38 @@ public class WorldConfigurations extends ConfigurationPart {
|
|
@Setting(Configuration.VERSION_FIELD)
|
|
int version = VERSION;
|
|
|
|
+ public Miscellaneous misc;
|
|
+ public class Miscellaneous extends ConfigurationPart {
|
|
+
|
|
+
|
|
+ }
|
|
+
|
|
+ public Entity entity;
|
|
+ public class Entity extends ConfigurationPart {
|
|
+
|
|
+ public Phantom phantom;
|
|
+ public class Phantom extends ConfigurationPart {
|
|
+
|
|
+
|
|
+ }
|
|
+
|
|
+ }
|
|
+
|
|
+ public Structure structure;
|
|
+ public class Structure extends ConfigurationPart {
|
|
+
|
|
+ public NetherPortal netherPortal;
|
|
+ public class NetherPortal extends ConfigurationPart {
|
|
+
|
|
+
|
|
+ }
|
|
+
|
|
+ }
|
|
+
|
|
+ public Block block;
|
|
+ public class Block extends ConfigurationPart {
|
|
+
|
|
+
|
|
+ }
|
|
+
|
|
}
|