Prevent signs created by plugins like SignColours

This commit is contained in:
snowleo 2011-07-02 13:16:44 +02:00
parent 335c9f37ab
commit ae053dea58

View File

@ -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))
{ {