mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 11:04:29 +02:00
Always cancel interact with sign.
This commit is contained in:
@@ -39,9 +39,9 @@ public class SignPlayerListener extends PlayerListener
|
|||||||
for (Signs signs : Signs.values())
|
for (Signs signs : Signs.values())
|
||||||
{
|
{
|
||||||
final EssentialsSign sign = signs.getSign();
|
final EssentialsSign sign = signs.getSign();
|
||||||
if (csign.getLine(0).equalsIgnoreCase(sign.getSuccessName())
|
if (csign.getLine(0).equalsIgnoreCase(sign.getSuccessName()))
|
||||||
&& !sign.onSignInteract(block, event.getPlayer(), ess))
|
|
||||||
{
|
{
|
||||||
|
sign.onSignInteract(block, event.getPlayer(), ess);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user