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 df502d5 commit aeca3ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ group=com.badbones69.crazycrates
description=Add unlimited crates to your server with 10 different crate types to choose from!
apiVersion=1.21
mcVersion=1.21.1
version=1.25.0
version=1.26.0
isBeta=false
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 aeca3ab

Please sign in to comment.