CC - Config Files

Sep 21, 2019
CC - Config Files
  • Note: These are all the configs that AREN'T crate configs... Check out the example crate configs to see those files as well!

    Config.YML
    > ---------------

    Code (Text):

    #------------------------------------------------------------------------------------------------------#
    #            _____                 _       _ _             _    _____           _                      #
    #           / ____|               (_)     | (_)           | |  / ____|         | |                     #
    #          | (___  _ __   ___  ___ _  __ _| |_ _______  __| | | |     _ __ __ _| |_ ___  ___           #
    #           \___ \| '_ \ / _ \/ __| |/ _` | | |_  / _ \/ _` | | |    | '__/ _` | __/ _ \/ __|          #
    #           ____) | |_) |  __/ (__| | (_| | | |/ /  __/ (_| | | |____| | | (_| | ||  __/\__ \          #
    #          |_____/| .__/ \___|\___|_|\__,_|_|_/___\___|\__,_|  \_____|_|  \__,_|\__\___||___/          #
    #                 | |                                                                                  #
    #                 |_|                                                                                  #
    #------------------------------------------------------------------------------------------------------#


    #---------------------------------------#
    #           Mechanic Settings           #
    #---------------------------------------#

    # How would you to store player statistics? Current options: FLATFILE, PLAYERFILES
    # FLATFILE: Every player's data is stored in one single file.
    # PLAYERFILES: Every player has their own file that stores their data.
    #     note: MYSQL is coming soon.
    store-data: FLATFILE

    # What plugin status messages would you like to be logged into console?
    # Options:
    #  EVERYTHING - Logs successful loads and failed loads.
    #  FAILURES - Logs all loading failures.
    #  NOTHING - Logs nothing at all to console.
    log-successes: FAILURES

    # Would you like the plugin to notify you of updates?
    notify-updates: true

    # Is the plugin in debug mode?
    debug: false

    #------------------------------------#
    #           Crate Settings           #
    #------------------------------------#

    # How many open inventory slots are required to open a crate?
    required-slots: 1

    # Do you want explosions to destroy dynamic crates?
    explosions-destroy-dynamic-crates: true

    # Should the player be pushed back when the wrong key is used?
    push-back: true

    # Should people be allowed to place crates in creative mode?
    place-creative: true

    # Should people be allowed to open crates in creative mode?
    open-creative: true

    # How many blocks should the hologram be offset from its original place?
    #    Note: This value applies to ALL crates, each individual crate can have its
    #          own hologram-offset set in their respective files.
    hologram-offset: 0

    # Should the break effect be played when a crate is placed / created?
    place-effect: true

    # Should the lore for a key be required to match the crate's key to work?
    require-key-lore: true

    # Should the crates automatically close when their animations is done playing?
    auto-close: true

    # Should shift clicking allow the user to open a crate with every key the
    #   player is holding?
    #  NOTE: Skipping the animation by using every key at once only gives 1 rewards per
    #    key, regardless of the animation type.
    shift-click-open-all: true

    # Should the player have to shift click the crate again to confirm opening
    #   it with every key / virtual key?
    shift-click-confirm: true

    # Should the player have to confirm to open the crate or not?
    confirm-open: false

    # How long should the crate-opening confirmation take to cancel, in seconds?
    #   NOTE: Also works for the shift-click confirmation.
    confirm-timeout: 3

    #-------------------------------------------#
    #           Crate Action Settings           #
    #-------------------------------------------#

    # Referring to the Action Bar, Title, and/or Subtitle...

    # How long would you like the message to take, in seconds, to fade in?
    fade-in-time: 0

    # How long would you like the message to stay on the screen, in seconds?
    stay-time: 4

    # How long would you like the message to take, in seconds, to fade out?
    fade-out-time: 1

    #-------------------------------------------#
    #           Lucky Crate Settings            #
    #-------------------------------------------#

    # Should lucky chests spawn when blocks are broken in creative mode?
    luckychest-creative: false

    # After how many MINUTES should a lucky crate despawn? Set to -1 for them to NEVER disappear.
    # This is just to prevent lag from having so many lucky crates around the world.
    # 1 hour = 60 minutes
    # 1 day = 1440 minutes
    # 1 month = 43800 minutes
    luckychest-despawn-after: -1

    # Should lucky chests spawn if the block was placed (and not naturally generated)?
    #  NOTE: 'placed block' data is ERASED after restart (NOT RELOAD) so it is not server-resource intensive to store every
    #  placed block. This is simply meant to be a deterrent from people placing and then re-breaking the blocks.
    luckychest-allow-placed-blocks: false

    #-----------------------------------------------#
    #             Virtual Crate Settings            #
    #-----------------------------------------------#

    # What multicrate is run when /crates is run
    crates-command-multicrate: AllCrates

    # What is the name of the menu of the /crates inventory
    crates-command-name: '&b&lVirtual &7&lCrates'

    # If a player has both a virtual key and a physical key, should it prioritize the physical or virtual key?
    prioritize-physical-key: true

    # Should multicrates show the virtual key count?
    virtual-crate-keycount: true

    # Should the multicrates show the virtual crate count?
    virtual-crate-cratecount: true

    # Format for how the player's virtual keys and crates are show
    #    note: This is added to the bottom of the displayed crate's lores.
    #
    # > %keys% - Amount of virtual keys
    # > %crates% - Amount of virtual crates
    virtual-crate-lore: '&cCrates: &f(&7%crates%&f)'
    virtual-key-lore: '&cKeys: &f(&7%keys%&f)'



    #-------------------------------------------------------#
    #       Rewards Display Inventory + Display Items       #
    #-------------------------------------------------------#

    # Would you like the rewards display inventory to be enabled?
    enabled: true

    # Should the multicrate reward display inventory open on right or left click?
    mc-reward-display-leftclick: true

    # The format for the name of the inventory displaying the rewards.
    # > %crate% - Name of the crate.
    inv-reward-display-name: '&4%crate% &cRewards'

    # The format for the name and lore of the item(s) being displayed in the inventory
    #   note: If a reward has a custom lore value set for it, this will be ignored.
    #
    # > %rewardname% - Name of the reward
    # > %displayname% - Display name of the reward
    # > %chance% - The actual calculated percent chance of winning that reward
    # > %rarity% - Rarity of the item.
    # > %writtenchance% - The chance that is written for that reward
    inv-reward-item-name: '&c%displayname%'
    inv-reward-item-lore:
      - '&7-'
      - '&eChance: &6%writtenchance%%'
     

    CrateConfig.YML
    > -------------------------

    Code (Text):

    CrateType:
      Block:
        OpenChest:
          chest-open-duration: 60
          early-reward-hologram: true
          reward-hologram-delay: 0
          reward-holo-attach-to-item: true
          early-open-actions: false
        OpenChestRolling:
          chest-open-duration: 60
          early-reward-hologram: true
          reward-hologram-delay: 0
          reward-holo-attach-to-item: true
          early-open-actions: false
      Inventory:
        Roulette:
          inv-name: '&8&l> &6&l%crate%'
          tick-sound: BLOCK_IRON_DOOR_CLOSE, 5, 5
          tile-update-ticks: 2
          tick-speed-per-run: 3
          final-crate-tick-length: 11
          random-blocks:
            - BLACK_STAINED_GLASS_PANE
            - WHITE_STAINED_GLASS_PANE
            - GRAY_STAINED_GLASS_PANE
        CSGO:
          inv-name: '&8&l> &6&l%crate%'
          tick-sound: BLOCK_CHEST_LOCKED, 5, 5
          identifier-block: REDSTONE_TORCH_ON;0
          tick-speed-per-run: 3
          final-crate-tick-length: 11
          tile-update-ticks: 2
          close-speed: 3
          filler-blocks:
            - BLACK_STAINED_GLASS_PANE
            - WHITE_STAINED_GLASS_PANE
            - GRAY_STAINED_GLASS_PANE
        Menu:
          inv-name: '&8&l> &6&l%crate%'
          inventory-rows: 3
          minimum-rewards: 1
          maximum-rewards: 8
        Enclose:
          inv-name: '&8&l> &6&l%crate%'
          tick-sound: ENTITY_PLAYER_LEVELUP, 5, 5
          fill-block: STAINED_GLASS_PANE;2
          reward-amount: 1
          update-speed: 2
          inventory-rows: 2
        Discover:
          inv-name: '&8&l> &6&l%crate%'
          tick-sound: ENTITY_ITEM_PICKUP, 3, 10
          click-sound: BLOCK_TRIPWIRE_CLICK_ON, 5, 5
          uncover-sound: ENTITY_PLAYER_LEVELUP, 5, 5
          inventory-rows: 3
          minimum-rewards: 1
          maximum-rewards: 4
          count: true
          random-display-duration: 50
          cover-block: CHEST;0
     

    Messages.YML
    > --------------------

    Code (Text):

    no-permissions: '&4&lERROR! &cYou do not have the correct permission: %permission%'
    fail-open: '&4&lERROR! &cYou do not have the proper key!'
    already-opening-crate: '&4&lERROR! &cYou are already opening a crate, you must wait until it is done!'
    inventory-too-full: '&4&lERROR! &cYour inventory is too full.'
    placed-crate: '&2&lSUCCESS! &aYou have placed the %crate% crate!'
    broken-crate: '2&lSUCCESS! &aYou have broken a %crate%.'
    failed-break-crate: '&4&lERROR! &cYou failed to break the %crate% because it is %reason%.'
    denied-use-crate: '&4&lERROR! &cThis crate is not obtainable by being placed.'
    no-key-use: '&4&lERROR! &cThis crate is not openable by using a key.'
    deny-creative-mode: '&4&lERROR! &cThis action cannot be performed in Creative Mode.'
    deny-place-key: '&4&lERROR! &cYou do not have permission to place a key.'
    cooldown-start: '&9&lNOTICE! &bThe %crate% crate is now on cooldown for %days% days, %hours% hours, %minutes% minutes, %seconds% seconds.'
    cooldown-end: '&9&lNOTICE! &bYou no longer have a cooldown for the %crate% crate.'
    crate-on-cooldown: '&4&lERROR! &cThe %crate% crate is on cooldown for for %days% days, %hours% hours, %minutes% minutes, %seconds% seconds..'
    found-lucky-chest: '&9&lNOTICE! &bYou have discovered a lucky chest!'
    wait-one-second: '&4&lERROR! &cYou must wait 1 second to perform this action.'
    crate-disabled: '&4&lERROR! &cThis crate is disabled and cannot be used.'
    denied-place-location: '&4&lERROR! &cYou cannot place a crate in this location!'
    toggle-luckycrate: '&2&lSUCCESS! &aYou have toggled luckycrates to %state%.'
    no-permission-crate: '&4&lERROR! &cYou do not have the permission to use this crate.'
    opening-virtualcrates: '&2&lSUCCESS! &aOpening the virtual crates menu.'
    insufficient-virtual-crates: '&4&lERROR! &cYou do not have enough virtual crates to open this.'
    confirm-open-all: '&6&lINFO: &eConfirm opening ALL KEYS AT ONCE by shift-clicking again. This will cancel after %timeout% seconds.'
    confirm-open: '&6&lINFO: &eConfirm opening crate by clicking again. This will cancel after %timeout% seconds.'
     


    Rewards.YML
    > --------------------

    Code (Text):

    Diamond:
      name: 'Diamond'
      commands:
        - give {name} minecraft:diamond 1
      item: DIAMOND;0
      glow: true
      chance: 10
      rarity: rare
      give-display-item:
        value: false
    Dirt:
      name: 'Dirt'
      item: DIRT;0
      lore:
        - '&5This is a &a&lcustom lore!'
        - '&c&oMake me unique to the default lore'
        - '&c&oThat you can set in the config.yml'
      glow: true
      chance: 20
      rarity: common
      give-display-item:
        value: true
        with-lore: false
    DiamondSword:
      name: 'Diamond Sword'
      enchantments:
        - DURABILITY;10
        - DAMAGE_ALL;5
        - FIRE_ASPECT;2
      item: DIAMOND_SWORD;0
      chance: 3
      rarity: legendary
      give-display-item:
        value: true
        with-lore: false
    MonsterEggsInAllVersions:
      name: 'Monster-specific spawn eggs for all versions'
      commands:
        - give {name} minecraft:milk 1
      item: CREEPER_SPAWN_EGG
      chance: 5
      rarity: legendary
      give-display-item:
        value: false
    Speed:
      name: 'Speed Effect and Potion'
      commands:
        - effect {name} 1 60 1
        - give {name} minecraft:milk 1
      item: POTION
      potion-effects:
        - SPEED;0;0
      chance: 5
      rarity: legendary
      give-display-item:
        value: true
        with-lore: false
    SuperGoldenApple:
      name: 'Super Golden Apple'
      item: GOLDEN_APPLE;1
      chance: 7
      rarity: legendary
      give-display-item:
        value: true
        with-lore: false
    GoldenApple:
      name: 'Golden Apple'
      item: GOLDEN_APPLE;0
      chance: 10
      rarity: legendary
      give-display-item:
        value: true
        with-lore: false
    Grass:
      name: 'Grass'
      commands:
        - give {name} minecraft:grass
      item: GRASS;0
      glow: true
      chance: 20
      rarity: common
      give-display-item:
        value: true
        lore: false
    SpecialDirt:
      name: 'Special Dirt'
      commands:
        - give {name} minecraft:dirt 1
      item: DIRT;1
      lore:
        - '&6I'
        - '&eam'
        - '&cspecial!'
        - '&7-'
        - '&eChance: &6%writtenchance%%'
      chance: 15
      rarity: uncommon
      give-display-item:
        value: true
        with-lore: false
    Jump:
      name: 'Jump Potion Effect'
      commands:
        - effect {name} 8 60 1
        - give {name} minecraft:milk_bucket 1
      item: POTION
      potion-effects:
        - JUMP;0;0
      chance: 7
      rarity: rare
      give-display-item:
        value: false
    SpecialDirt2:
      name: 'More Special Dirt'
      item: DIRT;2
      lore:
        - ''
        - '&4&lSUPER RARE: &6%writtenchance%% &lCHANCE'
        - ''
        - '&7Get Special Dirt if you win this!'
      chance: 10
      rarity: rare
      give-display-item:
        value: true
        with-lore: false
    MyHead:
      name: 'Ztowne13s Head'
      item: PLAYER_HEAD
      head-player-name: Ztowne13
      glow: false
      amount: 1
      chance: 1.0
      rarity: '1'
      give-display-item:
        value: true
        with-lore: false

     
  • Loading...
  • Loading...