mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-08-19 18:01:59 +00:00
New permission: essentials.signs.trade.override
Allows admins to break trade sign of other players.
This commit is contained in:
parent
fc2c67ceda
commit
f2d9b10e87
|
@ -55,7 +55,8 @@ public class SignTrade extends EssentialsSign
|
||||||
@Override
|
@Override
|
||||||
protected boolean onSignBreak(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException
|
protected boolean onSignBreak(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException
|
||||||
{
|
{
|
||||||
if (sign.getLine(3).length() > 3 && sign.getLine(3).substring(2).equalsIgnoreCase(username))
|
if ((sign.getLine(3).length() > 3 && sign.getLine(3).substring(2).equalsIgnoreCase(username))
|
||||||
|
|| player.isAuthorized("essentials.signs.trade.override"))
|
||||||
{
|
{
|
||||||
final Trade stored1 = getTrade(sign, 1, true, false, ess);
|
final Trade stored1 = getTrade(sign, 1, true, false, ess);
|
||||||
final Trade stored2 = getTrade(sign, 2, true, false, ess);
|
final Trade stored2 = getTrade(sign, 2, true, false, ess);
|
||||||
|
|
Loading…
Reference in a new issue