Update the player's inventory after switching

If other plugins (such as KommandSigns) run a command as a player it is
not the same as the player running it themselves, and it seems as
though the inventory doesn’t switch - this fixes that behaviour.