mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Improve fake sign check.
This commit is contained in:
parent
94dc29cc4d
commit
3055dd93a5
1 changed files with 10 additions and 0 deletions
|
@ -88,6 +88,16 @@ public class SignBlockListener implements Listener
|
|||
{
|
||||
event.setLine(i, Util.formatString(user, "essentials.signs", event.getLine(i)));
|
||||
}
|
||||
|
||||
final String topLine = event.getLine(0);
|
||||
for (Signs signs : Signs.values())
|
||||
{
|
||||
final EssentialsSign sign = signs.getSign();
|
||||
if (topLine.equalsIgnoreCase(sign.getSuccessName()))
|
||||
{
|
||||
event.setLine(0, Util.stripFormat(topLine));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
|
|
Loading…
Reference in a new issue