mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +00:00
Prevent signs created by plugins like SignColours
This commit is contained in:
parent
335c9f37ab
commit
ae053dea58
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue