mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-24 00:01:41 +01:00
Prevent signs created by plugins like SignColours
This commit is contained in:
parent
335c9f37ab
commit
ae053dea58
@ -88,6 +88,11 @@ public class SignBlockListener extends BlockListener
|
||||
for (Signs signs : Signs.values())
|
||||
{
|
||||
final EssentialsSign sign = signs.getSign();
|
||||
if (event.getLine(0).equalsIgnoreCase(sign.getSuccessName()))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
if (event.getLine(0).equalsIgnoreCase(sign.getTemplateName())
|
||||
&& !sign.onSignCreate(event, ess))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user