mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-06 11:00:43 +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())
|
for (Signs signs : Signs.values())
|
||||||
{
|
{
|
||||||
final EssentialsSign sign = signs.getSign();
|
final EssentialsSign sign = signs.getSign();
|
||||||
|
if (event.getLine(0).equalsIgnoreCase(sign.getSuccessName()))
|
||||||
|
{
|
||||||
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (event.getLine(0).equalsIgnoreCase(sign.getTemplateName())
|
if (event.getLine(0).equalsIgnoreCase(sign.getTemplateName())
|
||||||
&& !sign.onSignCreate(event, ess))
|
&& !sign.onSignCreate(event, ess))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user