Skip to content

Commit

Permalink
The last 1.20.4 update (#711)
Browse files Browse the repository at this point in the history
* feat: add bstats back
* chore: update outdated commands in comments
* fix: prevent an immutable error when using /crates additem
* chore: update CHANGELOG.md
* janitor: remove old bstats class
* chore: enable new metrics class
* chore: bump version
  • Loading branch information
ryderbelserion authored May 15, 2024
1 parent 3b55174 commit ca900e5
Show file tree
Hide file tree
Showing 17 changed files with 1,062 additions and 121 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
## Additions:
* Added bstats back to avoid blimps in the bstats page.
* If you wish to disable `bstats`, You can use the provided `bStats` to turn it off entirely. There is no need to provide a per plugin toggle as if you don't want it in one plugin, you don't want it in any of them.

## Fixes:
* Fixed an issue where you could still use `Menu` in `/crazycrates debug` and `/crazycrates additem`
* Fixed an issue with an immutable error when doing /crates additem on a prize already existing.

## Minor:
* Updated outdated commands in default files.
* Removed unused or commented out code

## Other:
* [Feature Requests](https://github.com/Crazy-Crew/CrazyCrates/discussions/categories/features)
* [Bug Reports](https://github.com/Crazy-Crew/CrazyCrates/issues)
* [Bug Reports](https://github.com/Crazy-Crew/CrazyCrates/issues)
Original file line number Diff line number Diff line change
Expand Up @@ -96,34 +96,34 @@ public void registerComments(CommentsConfiguration conf) {
"",
"<gold>/keys view [player] <gray>- <yellow>Check the number of keys a player has.",
"<gold>/keys <gray>- <yellow>Shows how many keys you have.",
"<gold>/cc <gray>- <yellow>Opens the menu."
"<gold>/crates <gray>- <yellow>Opens the menu."
));

@Comment("This requires crazycrates.command.admin.help")
public static final Property<List<String>> admin_help = newListProperty("command.admin-help", List.of(
"<bold><red>Crazy Crates Admin Help</bold>",
"",
"<gold>/cc additem <crate_name> <prize_number> <chance> [tier] <gray>- <yellow>Add items in-game to a prize in a crate including Cosmic/Casino.",
"<gold>/cc preview <crate_name> [player] <gray>- <yellow>Opens the preview of a crate for a player.",
"<gold>/cc list <gray>- <yellow>Lists all crates.",
"<gold>/cc open <crate_name> <gray>- <yellow>Tries to open a crate for you if you have a key.",
"<gold>/cc open-others <crate_name> [player] <gray>- <yellow>Tries to open a crate for a player if they have a key.",
"<gold>/cc transfer <crate_name> [player] [amount <gray>- <yellow>Transfers keys to players you chose.",
"<gold>/cc debug <gray>- <yellow>Debugs crates",
"<gold>/cc admin <gray>- <yellow>Shows admin menu",
"<gold>/cc forceopen <crate_name> [player] <gray>- <yellow>Opens a crate for a player for free.",
"<gold>/cc mass-open <crate_name> <physical/virtual> [amount] <gray>- <yellow>Mass opens a set amount of crates.",
"<gold>/cc tp <location> <gray>- <yellow>Teleport to a Crate.",
"<gold>/cc give <physical/virtual> <crate_name> [amount] [player] <gray>- <yellow>Allows you to take keys from a player.",
"<gold>/cc set <crate_name> <gray>- <yellow>Set the block you are looking at as a crate.",
"<gold>/cc set Menu <gray>- <yellow>Set the block you are looking at to open the /cc menu.",
"<gold>/cc reload <gray>- <yellow>Reloads the config/data files.",
"<gold>/cc set1/set2 <gray>- <yellow>Sets position <red>#1 <yellow>or <red>#2 <yellow>for when making a new schematic for QuadCrates.",
"<gold>/cc save <file name> <gray>- <yellow>Create a new nbt file in the schematics folder.",
"<gold>/crates additem <crate_name> <prize_number> <chance> [tier] <gray>- <yellow>Add items in-game to a prize in a crate including Cosmic/Casino.",
"<gold>/crates preview <crate_name> [player] <gray>- <yellow>Opens the preview of a crate for a player.",
"<gold>/crates list <gray>- <yellow>Lists all crates.",
"<gold>/crates open <crate_name> <gray>- <yellow>Tries to open a crate for you if you have a key.",
"<gold>/crates open-others <crate_name> [player] <gray>- <yellow>Tries to open a crate for a player if they have a key.",
"<gold>/crates transfer <crate_name> [player] [amount <gray>- <yellow>Transfers keys to players you chose.",
"<gold>/crates debug <gray>- <yellow>Debugs crates",
"<gold>/crates admin <gray>- <yellow>Shows admin menu",
"<gold>/crates forceopen <crate_name> [player] <gray>- <yellow>Opens a crate for a player for free.",
"<gold>/crates mass-open <crate_name> <physical/virtual> [amount] <gray>- <yellow>Mass opens a set amount of crates.",
"<gold>/crates tp <location> <gray>- <yellow>Teleport to a Crate.",
"<gold>/crates give <physical/virtual> <crate_name> [amount] [player] <gray>- <yellow>Allows you to take keys from a player.",
"<gold>/crates set <crate_name> <gray>- <yellow>Set the block you are looking at as a crate.",
"<gold>/crates set Menu <gray>- <yellow>Set the block you are looking at to open the /crates menu.",
"<gold>/crates reload <gray>- <yellow>Reloads the config/data files.",
"<gold>/crates set1/set2 <gray>- <yellow>Sets position <red>#1 <yellow>or <red>#2 <yellow>for when making a new schematic for QuadCrates.",
"<gold>/crates save <file name> <gray>- <yellow>Create a new nbt file in the schematics folder.",
"",
"<gold>/keys view [player] <gray>- <yellow>Check the number of keys a player has.",
"<gold>/keys <gray>- <yellow>Shows how many keys you have.",
"<gold>/cc <gray>- <yellow>Opens the menu.",
"<gold>/crates <gray>- <yellow>Opens the menu.",
"",
"<gray>You can find a list of permissions @ <yellow>https://docs.crazycrew.us/crazycrates/info/commands/permissions"
));
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {

val buildNumber: String? = System.getenv("NEXT_BUILD_NUMBER")

rootProject.version = if (buildNumber != null) "2.1.1-$buildNumber" else "2.1.1"
rootProject.version = if (buildNumber != null) "2.1.1-$buildNumber" else "2.1.2"

val isSnapshot = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.badbones69.crazycrates.listeners.crates.QuadCrateListener;
import com.badbones69.crazycrates.listeners.crates.WarCrateListener;
import com.badbones69.crazycrates.listeners.other.EntityDamageListener;
import com.badbones69.crazycrates.support.MetricsWrapper;
import com.badbones69.crazycrates.support.holograms.HologramManager;
import com.badbones69.crazycrates.support.placeholders.PlaceholderAPISupport;
import com.badbones69.crazycrates.tasks.BukkitUserManager;
Expand Down Expand Up @@ -78,12 +79,7 @@ public void onEnable() {
// Load commands.
CommandManager.load();

//this.metrics = new MetricsManager();

// Load metrics.
//if (ConfigManager.getConfig().getProperty(ConfigKeys.toggle_metrics)) {
//this.metrics.start();
//}
new MetricsWrapper(this, 4514).start();

List.of(
// Menu listeners.
Expand Down
Loading

0 comments on commit ca900e5

Please sign in to comment.