@SuppressWarnings("deprecation")
	@EventHandler(priority = EventPriority.HIGHEST)
	public void onInventoryClick(InventoryClickEvent event) {
		
		Player player = (Player) event.getWhoClicked();
		
		// sprawdza czy to inventory tego pluginu
		if(event.getInventory().getName().equalsIgnoreCase(this.plugin.dInvName)) {
			// jeśli to górne inventory to...
			if(event.getRawSlot() < 54) {
				// zezwolone w górnum inv
				if(event.getAction() == InventoryAction.PICKUP_ALL ||
						event.getAction() == InventoryAction.PICKUP_HALF ||
						event.getAction() == InventoryAction.PICKUP_ONE ||
						event.getAction() == InventoryAction.PICKUP_SOME ||
						event.getAction() == InventoryAction.MOVE_TO_OTHER_INVENTORY) {
					return;
				}
				event.setCancelled(true);
				player.updateInventory();
				
			} else {
				// zabronione w dolnym inv
				if(event.getAction() == InventoryAction.MOVE_TO_OTHER_INVENTORY) {
					event.setCancelled(true);
					player.updateInventory();
				}
			}

		}

	}