Merge pull request #38 from freezweb/patch-1

Hardcoded sign changed to config
This commit is contained in:
Stijn Bannink 2020-03-09 11:30:58 +01:00 committed by GitHub
commit 523fbb3e5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()) {