package main.java.de.nullpointer.zauberei.team;

import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;

public class QuidditchPlayer {
	
	protected static Material[] items = new Material[]{
			Material.COMPASS,
			Material.STICK
	};
	
	private Player player;
	private QuidditchTeam team;
	
	public QuidditchPlayer(Player player, QuidditchTeam team) {
		this.player = player;
		this.team = team;
		fillInventory();
	}
	
	public void fillInventory() {
		Inventory inv = player.getInventory();
		inv.clear();
		for (Material m : items) {
			inv.addItem(new ItemStack(m));
		}
	}
	
	public Player getPlayer() {
		return player;
	}
	
	public QuidditchTeam getTeam() {
		return team;
	}

}

@@ -736,16 +736,45 @@
 ;%0D%0A%09%09%7D%0D%0A
+%09%09player.updateInventory();%0D%0A
 %09%7D%0D%0A%09%0D%0A%09

Update player inventory