@EventHandler
	public void onPlayerChangedWorld(PlayerChangedWorldEvent event) {
		DataWorld fromWorld = plugin.getWorlds().get(event.getFrom());
		DataWorld toWorld = plugin.getWorlds().get(event.getPlayer().getWorld());
		
		if (plugin.getConfig().getBoolean("invsep.enabled") && !fromWorld.getInventoryGroup().equalsIgnoreCase(toWorld.getInventoryGroup())) {
			InventoryManager.changeInventory(event.getPlayer(), fromWorld, toWorld);
		}
		
		if (event.getPlayer().hasPermission("XcraftGate.world.info"))
			event.getPlayer().sendMessage(ChatColor.AQUA + "World changed from " + fromWorld.getName() + " to " + toWorld.getName());
		
		if (!event.getPlayer().hasPermission("XcraftGate.world.nogamemodechange"))
			event.getPlayer().setGameMode(GameMode.getByValue(toWorld.getGameMode()));
		
		playerLeftInWorld.put(event.getPlayer().getName(), event.getPlayer().getWorld().getName());
	}