mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-19 17:15:16 +01:00
Block sign interact if player is dead.
This commit is contained in:
parent
9fe226b79a
commit
9d1f25c455
@ -83,8 +83,8 @@ public class EssentialsSign
|
||||
}
|
||||
try
|
||||
{
|
||||
return (user.isAuthorized("essentials.signs." + signName.toLowerCase(Locale.ENGLISH) + ".use")
|
||||
|| user.isAuthorized("essentials.signs.use." + signName.toLowerCase(Locale.ENGLISH)))
|
||||
return (!user.isDead() && (user.isAuthorized("essentials.signs." + signName.toLowerCase(Locale.ENGLISH) + ".use")
|
||||
|| user.isAuthorized("essentials.signs.use." + signName.toLowerCase(Locale.ENGLISH))))
|
||||
&& onSignInteract(sign, user, getUsername(user), ess);
|
||||
}
|
||||
catch (ChargeException ex)
|
||||
|
Loading…
Reference in New Issue
Block a user