From 445638a561e7b299d0e2177916109a2ce117e3a2 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 25 Nov 2021 04:27:36 +0100 Subject: [PATCH] Releases a small hotfix for sign color as version 0.9.2.3 --- README.md | 4 ++++ pom.xml | 2 +- .../stargate/config/StargateGateConfig.java | 16 +++++++--------- src/main/resources/plugin.yml | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 53d7084..13caca6 100644 --- a/README.md +++ b/README.md @@ -389,6 +389,10 @@ portalInfoServer=Server: %server% # Changes +#### \[Version 0.9.2.3] EpicKnarvik97 fork + +- Fixes a typo which caused both colors to change into the highlightSignColor + #### \[Version 0.9.2.2] EpicKnarvik97 fork - Prevents teleportation of a player holding creatures on a leash when handleLeashedCreatures is disabled, to prevent diff --git a/pom.xml b/pom.xml index 3252b32..ef1ea7f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ net.knarcraft Stargate - 0.9.2.2 + 0.9.2.3 diff --git a/src/main/java/net/knarcraft/stargate/config/StargateGateConfig.java b/src/main/java/net/knarcraft/stargate/config/StargateGateConfig.java index 035ee98..4e5b5a3 100644 --- a/src/main/java/net/knarcraft/stargate/config/StargateGateConfig.java +++ b/src/main/java/net/knarcraft/stargate/config/StargateGateConfig.java @@ -188,15 +188,13 @@ public final class StargateGateConfig { * @param mainSignColor

A string representing the main sign color

*/ private void loadSignColor(String mainSignColor, String highlightSignColor) { - if (mainSignColor != null && highlightSignColor != null) { - try { - PortalSignDrawer.setMainColor(ChatColor.valueOf(highlightSignColor.toUpperCase())); - PortalSignDrawer.setHighlightColor(ChatColor.valueOf(highlightSignColor.toUpperCase())); - } catch (IllegalArgumentException | NullPointerException ignored) { - Stargate.logWarning("You have specified an invalid color in your config.yml. Defaulting to BLACK and WHITE"); - PortalSignDrawer.setMainColor(ChatColor.BLACK); - PortalSignDrawer.setHighlightColor(ChatColor.WHITE); - } + try { + PortalSignDrawer.setMainColor(ChatColor.valueOf(mainSignColor.toUpperCase())); + PortalSignDrawer.setHighlightColor(ChatColor.valueOf(highlightSignColor.toUpperCase())); + } catch (IllegalArgumentException | NullPointerException exception) { + Stargate.logWarning("You have specified an invalid color in your config.yml. Defaulting to BLACK and WHITE"); + PortalSignDrawer.setMainColor(ChatColor.BLACK); + PortalSignDrawer.setHighlightColor(ChatColor.WHITE); } } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 63a2a2a..3f90395 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: Stargate main: net.knarcraft.stargate.Stargate -version: 0.9.2.2 +version: 0.9.2.3 description: Stargate mod for Bukkit Revived author: EpicKnarvik97 authors: [ Drakia, PseudoKnight, EpicKnarvik97 ]