mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 23:26:45 +01:00
inventory
This commit is contained in:
parent
5f5d794c66
commit
6f87471e8a
@ -28,6 +28,7 @@ import org.bukkit.Material;
|
|||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.inventory.meta.ItemMeta;
|
import org.bukkit.inventory.meta.ItemMeta;
|
||||||
|
|
||||||
|
import com.intellectualcrafters.plot.object.BukkitPlayer;
|
||||||
import com.intellectualcrafters.plot.object.PlotPlayer;
|
import com.intellectualcrafters.plot.object.PlotPlayer;
|
||||||
|
|
||||||
public class Inventory extends SubCommand {
|
public class Inventory extends SubCommand {
|
||||||
@ -48,7 +49,8 @@ public class Inventory extends SubCommand {
|
|||||||
for (final SubCommand cmd : cmds) {
|
for (final SubCommand cmd : cmds) {
|
||||||
inventory.addItem(getItem(cmd));
|
inventory.addItem(getItem(cmd));
|
||||||
}
|
}
|
||||||
plr.openInventory(inventory);
|
// FIXME unchecked cast
|
||||||
|
((BukkitPlayer) plr).player.openInventory(inventory);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user