From 287dbd45a3c8eaba6fdba9ec9115ac35e362cb05 Mon Sep 17 00:00:00 2001 From: 3TUSK Date: Thu, 12 Sep 2024 13:19:13 -0700 Subject: [PATCH] 0.8.1: update some descriptions; area welcome message is disabled by default --- gradle.properties | 6 +++--- .../org/teacon/areacontrol/AreaControlPlayerTracker.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 21c0f8f..7d0d7c7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -34,12 +34,12 @@ mod_name=Area Control # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=BSD-3-Clause # The mod version. See https://semver.org/ -mod_version=0.8.0 +mod_version=0.8.1 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html -mod_group_id=com.example.examplemod +mod_group_id=org.teacon # The authors of the mod. This is a simple text string that is used for display purposes in the mod list. mod_authors=3TUSK, Burning_TNT (Migrate to NeoForge 1.21) # The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list. -mod_description=A comprehensive (maybe) plot management mod under Forge framework. +mod_description=A plot management mod made for TeaCon. diff --git a/src/main/java/org/teacon/areacontrol/AreaControlPlayerTracker.java b/src/main/java/org/teacon/areacontrol/AreaControlPlayerTracker.java index 7e75397..ca196d5 100644 --- a/src/main/java/org/teacon/areacontrol/AreaControlPlayerTracker.java +++ b/src/main/java/org/teacon/areacontrol/AreaControlPlayerTracker.java @@ -96,7 +96,7 @@ public static void onPlayerTick(PlayerTickEvent.Pre event) { INSTANCE.playerLocation.remove(playerId); } else { INSTANCE.playerLocation.put(playerId, currentArea.uid); - if (AreaProperties.getBool(currentArea, "area.display_welcome_message")) { + if (AreaProperties.getBoolOptional(currentArea, AreaProperties.SHOW_WELCOME).orElse(Boolean.FALSE)) { player.displayClientMessage(Component.translatable("area_control.claim.welcome", currentArea.name), true); } }