Hardcoded sign changed to config #38

Merged
freezweb merged 1 commit from patch-1 into master 2020-03-09 10:30:58 +00:00
Showing only changes of commit 0d3075c4cf - Show all commits

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