Skip to content

Commit

Permalink
Removido comando save
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBedrock committed Nov 3, 2024
1 parent 7857d1d commit ba7c591
Showing 1 changed file with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,39 +206,6 @@ public void onDebug(final Player player, @Suggestion("crates") final String crat
crate.getPrizes().forEach(prize -> PrizeManager.givePrize(player, prize, crate));
}

@SubCommand("save")
@Permission(value = "crazycrates.save", def = PermissionDefault.OP)
public void onSchematicSave(final Player player) {
player.sendMessage(MsgUtils.color("&cThis feature is not yet developed internally by &eRyder Belserion."));
}

/*@SubCommand("wand")
@Permission(value = "crazycrates.wand", def = PermissionDefault.OP)
public void onWandGive(Player player) {
player.getInventory().addItem(getItem(PersistentKeys.selector_wand.getNamespacedKey(), Material.DIAMOND_AXE, "&c&lPoint Selector"));
player.getInventory().addItem(getItem(PersistentKeys.crate_prize.getNamespacedKey(), Material.IRON_AXE, "&c&lTest Wand"));
}
private ItemStack getItem(NamespacedKey key, Material material, String name) {
ItemBuilder builder = new ItemBuilder();
builder.setMaterial(material).setName(name).setLore(List.of(
"&eSelect &cpoint #1 &eand &cpoint #2 &eto create a schematic.",
"&eOnce you select 2 points, Stand in the center",
"&eand run &c/schem-save to save your schematic."
));
ItemMeta itemMeta = builder.getItemMeta();
PersistentDataContainer container = itemMeta.getPersistentDataContainer();
container.set(key, PersistentDataType.STRING, "none");
builder.setItemMeta(itemMeta);
return builder.build();
}*/

@SubCommand("admin")
@Permission(value = "crazycrates.command.admin.access", def = PermissionDefault.OP)
public void onAdminMenu(final Player player) {
Expand Down

0 comments on commit ba7c591

Please sign in to comment.