You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to clear an player inventory on world change like: @EventHandler public void onWorldChange(PlayerChangedWorldEvent e){ Player p = e.getPlayer(); MIInventory cleaninv = new MIInventory((String) null); if (p != null) { if (p.getWorld().getName().equalsIgnoreCase("creative")) { MultiInv.getPlugin().getAPI().setPlayerInventory(p, "kitpvp", GameMode.SURVIVAL, cleaninv); } } }
But that doesn't seem to work at all. Can someone help me with this?
Kind Regards,
ChimpGamer
The text was updated successfully, but these errors were encountered:
Hey,
I'm trying to clear an player inventory on world change like:
@EventHandler public void onWorldChange(PlayerChangedWorldEvent e){ Player p = e.getPlayer(); MIInventory cleaninv = new MIInventory((String) null); if (p != null) { if (p.getWorld().getName().equalsIgnoreCase("creative")) { MultiInv.getPlugin().getAPI().setPlayerInventory(p, "kitpvp", GameMode.SURVIVAL, cleaninv); } } }
But that doesn't seem to work at all. Can someone help me with this?
Kind Regards,
ChimpGamer
The text was updated successfully, but these errors were encountered: