Sueta

RepairGui 1.8 ~ 26.x Editable GUI/PRICES/Supports other plug

6.7.4

A Repair plugin with GUI. Supports other plugins' currency to fix items

·Plugin

My other plugins
Free: BookNews | EnchantGui
Premium: HopperSorter

RepairGui

Multi-Repair


Features:

  • LightWeight
  • Repair Multiple Items
  • Editable prices / background / Accept button / Cancel button
  • Editable GUI
  • Editable Message
  • Sound Effects
  • Able to use other plugins' currency to fix items *Requires PlaceholderAPI

Requirement:

  • Vault
  • Economy Plugin (that hooks into Vault)

Softdepend:

Installation:

  1. Download the plugin, Vault and an Economy plugin.
  2. Drop the plugin into your plugins folder.
  3. Restart/Start server.
  4. Edit the config file.
config.yml
config-version: 2.2

check-update: true

Prefix: '&6&l[&aRepairGui&6&l] '

repair-sound:
  enable: true
  sound: BLOCK_ANVIL_USE

#Player can only open repair gui from the anvil that is placed by a person who have 'repairgui.anvil' permission
specific-anvil: true

blacklist-worlds:
  - 'pvp'

alias-command:
  repair:
    - 'fix'

  multirepair:
    - 'multifix'

#===================================================================#
# Available placeholders for repair-cost/item-type                  #
# {DURABILITY} = shows item's broken durability.                    #
#                                                                   #
# {ENCHANTAMOUNT} = shows item's enchantment amount.                #
# Note: if item doesn't have any enchantments, it outputs 0.        #
#                                                                   #
# {TYPE} = get tool's type (diamond/gold/chain/stone/wood)          #
# Note: it will be replaced to the cost that set in "item-type"     #
#                                                                   #
# {MAX_DURABILITY} = get tool's max durability                      #
#===================================================================#

# Note: you can do math in "item-tyApe" too.
item-type:
  DIAMOND: '2000'
  GOLD: '1500'
  CHAINMAIL: '1000'
  IRON: '500'
  STONE: '250'
  WOODEN: '20'
  NETHERITE: '4000'
  TRIDENT: '100'
  ELYTRA: '100'
  SHIELD: '2'
  DEFAULT: '1' # {TYPE} will return this value if the item isn't diamond/gold/chainmail/iron/stone/wooden/trident/elytra/shield

whitelist:
  enable: false
  items:
    - ''

blacklisted-items:
  - ''

repair-cost:
  single-repair:
    money:
      enable: true
      cost: '((10 * {DURABILITY}) + 200) / 2'
    level:
      enable: true
      cost: '({DURABILITY} + 200) / 100'
    # Note: placeholder for showing custom cost. [repairgui_custom_<name>]
    # Example "repairgui_custom_token", "repairgui_custom_coins"
    # Placeholder for custom cost:
    # %player_name% : output player's name
    # %cost% : output total repair cost
    custom:
      enable: false # This feature requires PlaceholderAPI
      cost:
        1:
          #TokenManager
          name: token
          type: '%tm_token%' #put the placeholder that show player's balance
          cost: '({DURABILITY} + 200) / 100'
          command: 'tokenmanager remove %player_name% %cost%' # Doesn't need to put "/"

        2:
          #Coins
          name: coins
          type: '%gemseconomy_balance%'
          cost: '({DURABILITY} + 200) / 100'
          command: 'coins take %player_name% %cost%'

  multi-repair:
    money:
      enable: true
      cost: '((10 * {DURABILITY}) + 200) / 2'
    level:
      enable: true
      cost: '({DURABILITY} + 200) / 100'
    # Note: placeholder for showing custom cost. [repairgui_custom_<name>]
    # Example "repairgui_custom_token", "repairgui_custom_coins"
    # Placeholder for custom cost:
    # %player_name% : output player's name
    # %cost% : output total repair cost
    custom:
      enable: false # This feature requires PlaceholderAPI
      cost:
        1:
          #TokenManager
          name: token
          type: '%tm_token%' #put the placeholder that show player's balance
          cost: '({DURABILITY} + 200) / 100'
          command: 'tokenmanager remove %player_name% %cost%' # Doesn't need to put "/"

        2:
          #Coins
          name: coins
          type: '%gemseconomy_balance%'
          cost: '({DURABILITY} + 200) / 100'
          command: 'coins take %player_name% %cost%'

Message:
  Not-Enough-Money: '&cYou don''t have enough money to repair this item!'
  Not-Enough-Level: '&cYou don''t have enough level to repair this item!'
  # %name% will output the "name" that you have set in the custom repair prices
  Not-Enough-Custom-Currencies: '&cYou don''t have enought %name% to repair this item!'
  No-Permission: '&cYou don''t have permission to do this!'
  Repair-Item: '&6You have repaired your items!'
  Blacklist-World-Command: '&cYou can''t use this command in this world!'
repair.yml
FillItem: #Auto-fill all empty slot with the item setted.
    enable: true
    item:
       material: STAINED_GLASS_PANE
       display_name: ' '
       quantity: 1
       data: 3

Gui-Settings:
    #Available size (9, 18, 27, 36, 45, 54)
    size: 54
    name: '&4RepairGui'
    accept-button:
        item:
          material: STAINED_GLASS
          display_name: '&aAccept'
          quantity: 1
          data: 5
          lore:
          - '&aCost: ${PRICES_MONEY} + {PRICES_LEVEL} level(s)'
          - '&aCurrent Money: ${PLAYER_MONEY}'
          - '&aCurrent Level: {PLAYER_LEVEL}'
        slot: 38

    cancel-button:
        item:
          material: STAINED_GLASS
          display_name: '&cCancel'
          quantity: 1
          data: 14
          lore:
          - ''
          - ''
        slot: 42
    player-item-slot: 22
 
GUI:
    1:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 0
 
    2:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 1
 
    3:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 9
    4:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 7
 
    5:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 8
 
    6:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 17
    7:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 36
 
    8:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 44
 
    9:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 45
    10:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 46
 
    11:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 52
 
    12:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 14
      slot: 53
multirepair.yml
FillItem: #Auto-fill all empty slot with the item setted.
    enable: true
    item:
       material: STAINED_GLASS_PANE
       display_name: ' '
       quantity: 1
       data: 3

Gui-Settings:
    #Available size (9, 18, 27, 36, 45, 54)
    size: 54
    name: '&4Mutli-RepairGui'
    accept-button:
        item:
          material: STAINED_GLASS
          display_name: '&aAccept'
          quantity: 1
          data: 5
          lore:
          - '&aCost: ${PRICES_MONEY} + {PRICES_LEVEL} level(s)'
          - '&aCurrent Money: ${PLAYER_MONEY}'
          - '&aCurrent Level: {PLAYER_LEVEL}'
        slot: 38
    cancel-button:
        item:
          material: STAINED_GLASS
          display_name: '&cCancel'
          quantity: 1
          data: 14
          lore:
          - ''
          - ''
        slot: 42
    player-item-slots:
    - 11
    - 12
    - 13
    - 14
    - 15
    - 20
    - 21
    - 22
    - 23
    - 24

GUI:
    1:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 0
 
    2:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 1
 
    3:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 2
    4:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 3
 
    5:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 4
 
    6:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 5
    7:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 6
 
    8:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 7
 
    9:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 8
    10:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 45
 
    11:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 46
    12:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 47
    13:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 48
    14:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 49
    15:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 50
    16:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 51
    17:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 52
    18:
      type: item
      item:
        material: STAINED_GLASS_PANE
        display_name: ' '
        quantity: 1
        data: 1
      slot: 53

Wiki: Here
Command/Permission: Here
Event: Here


Having issues with the plugin? You can report it in the discord server.
It might take some time for me to reply as I am a student. Thank you for your patience

Similar projects

Plugin →