mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 18:14:38 +02:00
Improve fake sign check.
This commit is contained in:
@@ -88,6 +88,16 @@ public class SignBlockListener implements Listener
|
|||||||
{
|
{
|
||||||
event.setLine(i, Util.formatString(user, "essentials.signs", event.getLine(i)));
|
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)
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
|
Reference in New Issue
Block a user