[Bug] It is possible to smuggle items into dungeons with seperate inventories
Description: Players can smuggle any item into any dungeon with seperate inventory, the items that they smuggle are lost at the end of the dungeon.
Steps to reproduce:
- Fill your inventory with any item.
- Drop the items you want to smuggle in the dungeon on the ground right below you.
- Execute /md play (dungeon name)
- Observe
Expected Behaviour: MythicDungeons first teleports the player and then clears his inventory thus the items that the player dropped stay there, dropped to the ground
Observed Behavior: MythicDungeons first clears the inventory and then teleports the player thus there is a small window between the clear and the teleportation where the items from the ground are picked automatically, thus the player has successfully smuggled items into the dungeon.
I personally believe priority is to be given to this issue since it results to both the dungeon being easily exploitable and to players losing the items they smuggle in after bug abusing (since at the end of the dungeon MythicDungeons rollbacks the player's inventory thus getting rid of the smuggled items).