public static void PlayerPerksInventory(Player player) {
		
		// get a list of all perks
		List<?> PerkList = GChub.getPlugin().getMainConfig().getList("PerkList");
		
		// get player name
		String PlayerName = player.getName().toString();
		
		// get player rank
		String AllPlayerRanks = "";
		String PlayerRank = null;
		String[] playerGroups = GChub.getPlugin().permission.getPlayerGroups(player);  
		List<?> RankLevel = GChub.getPlugin().getMainConfig().getList("RankLevel");
		
		for(int i = 0; i < playerGroups.length; i++) {
			AllPlayerRanks = AllPlayerRanks + ", " + playerGroups[i];
		}

		for (int i = 0; i < RankLevel.size(); i++) {
			String gName = RankLevel.get(i).toString().toLowerCase();
			// test if current group is the highest one
			if(AllPlayerRanks.toString().toLowerCase().contains(gName)) {
				PlayerRank = RankLevel.get(i).toString();
				break;
			}			
		}
		
		// clear player inventory before generating a new random one
		player.getInventory().clear();
		
		// create random inventory for player
		PlayerCreateRandomInventory(player, PlayerName, PlayerRank, PerkList);
		
	}