Skip to content

Commit

Permalink
Rename it to casino crate
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Feb 8, 2024
1 parent 242bfb8 commit a7d8beb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Expand Up @@ -25,9 +25,9 @@ public enum CrateType {
*/
csgo("CSGO"),
/**
* CSGO Crate but spins 3 rewards
* Casino Crate like a slots machine in a casino.
*/
csgo_triple("CSGOTriple"),
casino("Casino"),
/**
* FireCracker, A simple variant of QuickCrate that launches fireworks.
*/
Expand Down
Expand Up @@ -365,7 +365,7 @@ public void openCrate(Player player, Crate crate, KeyType keyType, Location loca

switch (crate.getCrateType()) {
case csgo -> crateBuilder = new SingleAnimation(crate, player, 27);
case csgo_triple -> crateBuilder = new TripleAnimation(crate, player, 27);
case casino -> crateBuilder = new CasinoCrate(crate, player, 27);
case wonder -> crateBuilder = new WonderCrate(crate, player, 45);
case wheel -> crateBuilder = new WheelCrate(crate, player, 54);
case roulette -> crateBuilder = new RouletteCrate(crate, player, 45);
Expand Down
@@ -1,4 +1,4 @@
package com.badbones69.crazycrates.managers.crates.types.csgo;
package com.badbones69.crazycrates.managers.crates.types;

import com.badbones69.crazycrates.CrazyCrates;
import com.badbones69.crazycrates.api.builders.CrateBuilder;
Expand All @@ -11,13 +11,11 @@
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.scheduler.BukkitRunnable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import us.crazycrew.crazycrates.api.enums.types.KeyType;

public class TripleAnimation extends CrateBuilder {
public class CasinoCrate extends CrateBuilder {

public TripleAnimation(Crate crate, Player player, int size) {
public CasinoCrate(Crate crate, Player player, int size) {
super(crate, player, size);

runTaskTimer(CrazyCrates.get(), 1, 1);
Expand Down

0 comments on commit a7d8beb

Please sign in to comment.