mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-11-06 03:50:28 +00:00
Remove debug messages.
This commit is contained in:
parent
e324a21b60
commit
eaa93d545d
1 changed files with 0 additions and 3 deletions
|
@ -435,15 +435,12 @@ public class EssentialsPlayerListener implements Listener
|
||||||
@EventHandler(priority = EventPriority.LOWEST)
|
@EventHandler(priority = EventPriority.LOWEST)
|
||||||
public void onInventoryClickEvent(final InventoryClickEvent event)
|
public void onInventoryClickEvent(final InventoryClickEvent event)
|
||||||
{
|
{
|
||||||
ess.getLogger().info("Detected invent click");
|
|
||||||
if (event.getView().getTopInventory().getType() == InventoryType.PLAYER)
|
if (event.getView().getTopInventory().getType() == InventoryType.PLAYER)
|
||||||
{
|
{
|
||||||
ess.getLogger().info("This is a player/player inventory click");
|
|
||||||
final User user = ess.getUser(event.getWhoClicked());
|
final User user = ess.getUser(event.getWhoClicked());
|
||||||
final InventoryHolder invHolder = event.getView().getTopInventory().getHolder();
|
final InventoryHolder invHolder = event.getView().getTopInventory().getHolder();
|
||||||
if (invHolder != null && invHolder instanceof HumanEntity)
|
if (invHolder != null && invHolder instanceof HumanEntity)
|
||||||
{
|
{
|
||||||
ess.getLogger().info("Confirmed the top inventory belongs to a valid human.");
|
|
||||||
final User invOwner = ess.getUser((HumanEntity)invHolder);
|
final User invOwner = ess.getUser((HumanEntity)invHolder);
|
||||||
if (user.isInvSee() && (!user.isAuthorized("essentials.invsee.modify")
|
if (user.isInvSee() && (!user.isAuthorized("essentials.invsee.modify")
|
||||||
|| invOwner.isAuthorized("essentials.invsee.preventmodify")
|
|| invOwner.isAuthorized("essentials.invsee.preventmodify")
|
||||||
|
|
Loading…
Reference in a new issue