private void executeAction(List<String> actionList, Player p) {
		
		for(String action : actionList) {
			
			String[] a = action.split(" ");
			
			// Give action
			if(a[0].equalsIgnoreCase("give")) {
				
				String[] itemData = a[1].split(":");
				int item = Integer.parseInt(itemData[0]);
				byte data = 0;
				short damage = 0;
				if(itemData.length == 2) {
					data = (byte) Integer.parseInt(itemData[1]);
				}
				int n = Integer.parseInt(a[2]);
				p.getInventory().addItem(new ItemStack(item, n, damage, data));
			}
			
			// Kill action
			else if(a[0].equalsIgnoreCase("kill")) {
				
				p.setHealth(0);
			}
			
			// Addxp action
			else if(a[0].equalsIgnoreCase("addxp")) {
				
				int exp = Integer.parseInt(a[1]);
				p.giveExp(exp);
			}
			
			// Tpto action
			else if(a[0].equalsIgnoreCase("tpto")) {
				
				String[] xyz = a[1].split("\\,");
				World world = p.getWorld();
				Location loc = new Location(world, Integer.parseInt(xyz[0]), Integer.parseInt(xyz[1]), Integer.parseInt(xyz[2]));
				p.teleport(loc);
			}
			
			// Smite action
			else if(a[0].equalsIgnoreCase("smite")) {
				p.getWorld().strikeLightning(p.getLocation());
			}
			
			// Broadcast action
			else if(a[0].equalsIgnoreCase("broadcast")) {
				
				String message = a[1];
				for(Integer i = 2; i < a.length; i++) {
					message = message + " " + a[i];
				}
				
				message = message.replaceAll("(?i)&([a-f0-9])", "\u00A7$1");
				plugin.getServer().broadcastMessage(message);
			}
		}
		
	}