mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-08-26 05:07:45 +00:00
/me crashes ementalo's face for making the client crash.
This commit is contained in:
parent
0668c4214e
commit
6d1e2dd10e
|
@ -420,9 +420,7 @@ public class EssentialsPlayerListener implements Listener
|
||||||
if (event.getView().getTopInventory().getType() == InventoryType.PLAYER)
|
if (event.getView().getTopInventory().getType() == InventoryType.PLAYER)
|
||||||
{
|
{
|
||||||
final User user = ess.getUser(event.getWhoClicked());
|
final User user = ess.getUser(event.getWhoClicked());
|
||||||
final User invOwner = ess.getUser(event.getView().getPlayer());
|
if (user.isInvSee() && !user.isAuthorized("essentials.invsee.modify"))
|
||||||
if (user.isInvSee() && !user.isAuthorized("essentials.invsee.modify")
|
|
||||||
|| invOwner.isAuthorized("essentials.invsee.preventmodify"))
|
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue