use of co.aikar.commands.annotation.Syntax in project VoxelGamesLibv2 by VoxelGamesLib.
the class EditMode method chest.
@Subcommand("chest")
@CommandPermission("%admin")
@Syntax("<name> - the name of the chest")
public void chest(@Nonnull User sender, @Nonnull String name) {
if (editMode.contains(sender.getUuid())) {
ItemStack chest = new ItemBuilder(Material.CHEST).name(name).build();
sender.getPlayer().getInventory().setItemInMainHand(chest);
} else {
Lang.msg(sender, LangKey.EDITMODE_NOT_ENABLED);
}
}
Aggregations