mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-11-05 11:36:10 +00:00
Fixed bug preventing players from removing their own signs
This commit is contained in:
parent
ac1f2badc7
commit
fe15bab05f
1 changed files with 7 additions and 2 deletions
|
@ -183,14 +183,19 @@ public class SignProtection extends EssentialsSign
|
||||||
SignProtectionState retstate = SignProtectionState.NOSIGN;
|
SignProtectionState retstate = SignProtectionState.NOSIGN;
|
||||||
for (SignProtectionState state : signs.values())
|
for (SignProtectionState state : signs.values())
|
||||||
{
|
{
|
||||||
if (state == SignProtectionState.OWNER || state == SignProtectionState.ALLOWED)
|
|
||||||
|
if (state == SignProtectionState.OWNER)
|
||||||
{
|
{
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
if (state == SignProtectionState.NOT_ALLOWED)
|
if (state == SignProtectionState.ALLOWED)
|
||||||
{
|
{
|
||||||
retstate = state;
|
retstate = state;
|
||||||
}
|
}
|
||||||
|
else if (state == SignProtectionState.NOT_ALLOWED && retstate != SignProtectionState.ALLOWED)
|
||||||
|
{
|
||||||
|
retstate = state
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return retstate;
|
return retstate;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue