Paste #29846: Ranking.yml

Date: 2016/02/07 16:39:36 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


CraftingTableCommand:
    type: command
    debug: false
    name: workbench
    permission: ntb.workbench
    permission message: "<&c>Redstone Rank only!"
    aliases:
    - wb
    script:
    - inventory open d:in@workbench

RankUpScript:
    type: command
    debug: true
    name: rankup
    description: Gives Redstone Rank.
    usage: /rankup redstone
    script:
    - if <context.raw_args> == redstone {
        - if <player.has_flag[redstoneRank]> {
            - narrate "<red>You already own the rank, fatty."
            - queue clear
            }
        - if !<player.inventory.contains[redstone_block]> {
            - if !<player.inventory.contains[MiniumShard].quantity[12]> {
                - if !<player.inventory.contains[diamond]> {
                    - narrate "<red>You don't have required items!"
                    - narrate "<gold>You need 1 Redstone Block, 12 MiniumShards, and a diamond!"
                    - queue clear
                    }
                }
            }
        - take redstone_block quantity:1
        - take Miniumshard quantity:12
        - take diamond quantity:1
        - flag player redstoneRank
        - flag player prefix:<&4>Redstone
        - narrate "<red>You have been promoted to Redstone Rank!"
        - narrate "<white>You have unlocked the redstone and food kit!"
        - narrate "<purple>You are now able to do /tpa, /tpaccept, /tpahere, /workbench[/wb]."
        - permission add essentials.kits.redstone
        - permission add essentials.kits.food
        - permission add essentials.tpa
        - permission add essectials.tpaccept
        - permission add essentials.tpahere
        - permission add ntb.workbench
        }
    - if <context.raw_args> == iron {
        - if <player.has_flag[ironRank]> {
            - narrate "<red>You already own the rank, fatty."
            - queue clear
            }
        - if !<player.inventory.contains[iron_block]> {
            - if !<player.inventory.contains[MiniumShard].quantity[24]> {
                - if !<player.inventory.contains[diamond].quantity[6]> {
                    - narrate "<red>You don't have required items!"
                    - narrate "<gold>You need 1 Iron Block, 24 MiniumShards, and 6 diamond!"
                    - queue clear
                    }
                }
            }
        - take iron_block quantity:1
        - take Miniumshard quantity:24
        - take diamond quantity:6
        - flag player ironRank
        - flag player prefix:!
        - flag player prefix:<&f>Iron
        - narrate "<gray>You have been promoted to Iron Rank!"
        - narrate "<white>You have unlocked the iron kit!"
        - narrtae "<purple>You are now able to TNT spawners and have a 70<&pc> drop chance! You are able to do /enderchest."
        - permission add essentials.kits.iron
        - permission add silkspawners.explodedrop
        - permission add essentials.enderchest
        }
    - if <context.raw_args> == diamond {
        - if <player.has_flag[diamondRank]> {
            - narrate "<red>You already own the rank, fatty."
            - queue clear
            }
        - if !<player.inventory.contains[diamond_block]> {
            - if !<player.inventory.contains[MiniumShard].quantity[64]> {
                - if !<player.inventory.contains[enchantedgoldenapple]> {
                    - narrate "<red>You don't have required items!"
                    - narrate "<gold>You need 1 Diamond Block, 64 MiniumShards, and a Notch Apple(Enchanted Golden Apple)!"
                    - queue clear
                    }
                }
            }
        - take diamond_block quantity:1
        - take Miniumshard quantity:64
        - take enchantedgoldenapple quantity:1
        - flag player diamondRank
        - flag player prefix:!
        - flag player prefix:<&b>Diamond
        - narrate "<blue>You have been promoted to Diamond Rank!"
        - narrate "<white>You have unlocked the diamond kit!"
        - narrate "<purple>You are now able to use /repair /hat and break spwaners for 100<&pc> chance with silk touch."
        - permission add essentials.kits.diamond
        - permission add silkspawners.silkdrop.*
        - permission add essentials.repair
        - permission add essentials.hat
        }