mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-30 12:01:36 +01:00
Prevent extra colour codes from creating...
...Essentials signs
This commit is contained in:
parent
540fa98a44
commit
19dcb33eb7
@ -86,7 +86,7 @@ public class SignBlockListener implements Listener {
|
|||||||
//We loop through all sign types here to prevent clashes with preexisting signs later
|
//We loop through all sign types here to prevent clashes with preexisting signs later
|
||||||
for (Signs signs : Signs.values()) {
|
for (Signs signs : Signs.values()) {
|
||||||
final EssentialsSign sign = signs.getSign();
|
final EssentialsSign sign = signs.getSign();
|
||||||
if (topLine.equalsIgnoreCase(sign.getSuccessName())) {
|
if (topLine.endsWith(sign.getSuccessName()) && ChatColor.stripColor(topLine).equalsIgnoreCase(ChatColor.stripColor(sign.getSuccessName()))) {
|
||||||
event.setLine(0, ChatColor.stripColor(topLine));
|
event.setLine(0, ChatColor.stripColor(topLine));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user