From 0d3075c4cf9bebe7936ea1eeb1e461f53d2725e0 Mon Sep 17 00:00:00 2001 From: freezweb Date: Mon, 9 Mar 2020 10:49:10 +0100 Subject: [PATCH] Hardcoded sign changed to config Hardcoded sign changed to config ConfigUtil.getConfigText("SignText") --- .../nl/SBDeveloper/V10Lift/Listeners/SignChangeListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/lombok/nl/SBDeveloper/V10Lift/Listeners/SignChangeListener.java b/src/main/lombok/nl/SBDeveloper/V10Lift/Listeners/SignChangeListener.java index 5552c2c..48f9013 100644 --- a/src/main/lombok/nl/SBDeveloper/V10Lift/Listeners/SignChangeListener.java +++ b/src/main/lombok/nl/SBDeveloper/V10Lift/Listeners/SignChangeListener.java @@ -17,7 +17,7 @@ public class SignChangeListener implements Listener { @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void onSignChange(SignChangeEvent e) { String[] lines = e.getLines(); - if (!lines[0].equalsIgnoreCase("[v10lift]")) return; + if (!lines[0].equalsIgnoreCase(ConfigUtil.getConfigText("SignText"))) return; Player p = e.getPlayer(); if (lines[1].isEmpty()) { -- 2.45.2