RepairGui 1.8 ~ 1.21.x Editable GUI/PRICES/Supports other plugin's currencies icon

RepairGui 1.8 ~ 1.21.x Editable GUI/PRICES/Supports other plugin's currencies -----

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




Fixed plugin unable to start on PaperMC 1.20.6 and above
----------, Jun 22, 2024

Added custom model data support

Code (YAML):
 item:
    material
: BLUE_STAINED_GLASS_PANE
    model_data
: 0 # <-- add this line
    display_name
: ' '
    quantity
: 1
    lore
:
     - ''
----------, Sep 25, 2022

Fixed an issue with combat logs plugin
----------, Aug 29, 2022

Bug Fix:
- Fixed "Invalid placeholder" error if the value return by the placeholder contains comma
----------, Jan 17, 2022

Note: there are some changes in config.yml but plugin will automatically update your file. Please do backup the file before updating to this version just in case.

Bug Fix:

- Fixed old configuration get deleted/replaced after plugin update the file
- Fixed NPE error when using custom cost

Changes:
- added id into custom cost
- Renamed type to balance_placeholder

This is how it look in newer version

Code (YAML):

    custom
:
      enable
: true
      cost
:
        1
:
          id
: token
          name
: tokens
          balance_placeholder
: ' %tm_token%'
          cost
: ' ( {DURABILITY } + 200 ) / 100'
          command
: 'tokenmanager remove %player_name% %cost%'

 
You can check this to know how to setup custom cost
----------, Jan 4, 2022

Added:
- Added whitelist
- Able to disable repairgui's anvil in a certain world
- Added new message
----------, Nov 28, 2021

Fixed plugin doesn't return item to player when the server shuts down or restarts
----------, Oct 17, 2021

Bug Fix:
- Fixed plugin removing damaged anvil from data.yml
----------, Sep 19, 2021

Bug Fix:
- NullPointerException error after closing the GUI

Added:
- repair message
----------, Sep 10, 2021

Bug Fix:
- Fixed NPE error
- Fixed custom cost doesn't work
----------, Aug 18, 2021

Changes:
- plugin supports Java15&16 now
- plugin will inform you if one of the item's slot is greater than inventory size in the console

Added:
- Custom event MultiRepairEvent & SingleRepairEvent

Code (Java):
@EventHandler
public void onSingleRepair (SingleRepairEvent event ) {
    Player player = event. getPlayer ( ) ;
    ItemStack item = event. getItem ( ) ;

    double moneyCost = event. getMoneyCost ( ) ;
    int levelCost = event. getLevelCost ( ) ;

    // Your code here...
}
 
@EventHandler
public void onMultiRepair (MultiRepairEvent event ) {
    Player player = event. getPlayer ( ) ;
    List <ItemStack > items = event. getItems ( ) ;
   
    double moneyCost = event. getMoneyCost ( ) ;
    int levelCost = event. getLevelCost ( ) ;
     
    // Your code here...
}
----------, May 22, 2021

Bug Fix:
- Fixed "repairgui.admin" permission not working

Added:
- able to set a gui's item unbreakable

Code (YAML):
1:
  type
: item
    item
:
      material
: STAINED_GLASS_PANE
      display_name
: ' '
      quantity
: 1
      # Add this if you want to set an item unbreakable
      unbreakable
: true
  slot
: 1
----------, Apr 26, 2021

Added:
- an option to blacklist the items you don't want player to repair

Changes:
- single repair and multi repair cost are now separated.

Note: Please backup your config.yml before updating to this version to avoid losing all the settings you have set if plugin fails to update the file
----------, Mar 6, 2021

Bug Fix:
- prefix doesn't update after /repairgui reload
- NPE error
----------, Dec 20, 2020

Bug Fix:
- Player can't put item into gui by shift + left click

Added:
- /repairgui toggle command for admin, which make it easier to place normal anvil
----------, Nov 12, 2020

v6.5.8

Bug Fix:

- Error occurs sometimes while saving anvil location into data.yml
----------, Nov 9, 2020

v6.5.7

Bug Fix:

- anvil become normal in custom world
----------, Nov 1, 2020

Bug Fix:
- plugin save other block location into data.yml
----------, Oct 28, 2020

Bug Fix:
- Fixed plugin doesn't open the gui for player when the anvil is damaged
- Fixed plugin doesn't open the gui for player after anvil falling
----------, Sep 21, 2020

Bug Fixed:
- Fixed NPE error while repairing item in single repair gui
----------, Jun 28, 2020

Bug Fixed:
- Fixed wrong message when player doesn't have enough level to repair the item

Changes:
- Player now can't pick up item while repairing item
----------, May 31, 2020

Bug Fixed:
- Fixed a file generation error
----------, May 6, 2020

Bug Fixed:
- Fixed still take player's level even the level-cost is disabled
- Fixed some message nullpointer exception error
----------, May 5, 2020

RepairGui v.6.5.0

Improvement:

- Recoded most of the classes
- Player won't be able to add another item in multiple repair gui until it finish calculating the price. (This is for prevent player spam item and cause server lag due to the price calculation)
- Better performance


Changes:
- Renamed Only-Admin-Anvil to specific-anvil.
Code (YAML):
#Player can only open repair gui from the anvil that is placed by a person who have 'repairgui.anvil' permission
specific-anvil
: true
- Removed Open-GUI section.
Code (YAML):
# Removed
Open-GUI
:
  command
: true
  anvil
: true
- the jar are mixed together now. Support 1.8 ~ 1.15.2
- repairgui.admin.anvil permission renamed to repairgui.anvil

There're some people report about the anvil doesn't work if it is placed in the air and fall to the ground. I will fix it on the next version.
----------, May 4, 2020

RepairGui 6.4.12

Bug Fixed:

- Fixed placeholder get unregistered after /papi reload
- Removed "275" debug message in console.
----------, Feb 3, 2020

RepairGui v6.4.11

Bug Fixed:

- Fixed check-update
- Fixed some issues with WorldGuard/CombatLogX
- Fixed ClassNotFoundException on 1.8.x server
----------, Jan 20, 2020

Bug Fixed (Legacy Version):
- Fixed NPE while cleaning junk data

Bug Fixed (1.13+ version):
- Fixed NPE while cleaning junk data
- Fixed Chipped Anvil and Damaged Anvil couldn't open gui
----------, Sep 24, 2019

Bug Fixed:
- Fixed plugin's saving other block(not anvil) into data.yml
- Fixed some lag

Note: The plugin will clean the data.yml ( remove those block's location that is not anvil's location)
----------, Sep 18, 2019

Bug Fixed:
- Fixed some issues with {TYPE}

Note: {TYPE} section has been updated
Code (YAML):
item-type:
    DIAMOND
: '2000'
    GOLD
: '1500'
    CHAINMAIL
: '1000'
    IRON
: '500'
    STONE
: '250'
    WOODEN
: '20'
    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
   
----------, Jul 20, 2019

Bug Fixed:
- Fixed item disappeared if inventory is full
- Fixed alias command not working
----------, Jul 8, 2019

Bug Fixed:
- Fixed item disappears glitch on multirepair gui
----------, Jul 1, 2019

Bug Fixed:
- Fixed error while creating file (some people have this issue)
- Fixed wrong version naming
----------, Jun 17, 2019

Bug Fixed:
- Alias command not working
- Turtle hat / Trident max durability is 0

Important Announcement
Due to some issues, i have to split the plugin into 2 versions. One will support versions 1.8~1.12.2, the other one will support versions from 1.13 and up.
For the people who are using the plugin on a 1.13 ~ 1.14.2 server, you will have to set the item material names again in repair.yml / multirepair.yml. Also "data" in item section does no long exist for versions that are 1.13 and above
----------, May 28, 2019

Now you can edit your own allies command in the config.yml.
Just replace the RepairGui plugin and then restart the server. You will see a "allies-command" section in config.yml
----------, May 27, 2019

Fixed some mistake codes
----------, May 11, 2019

- Removed a debug message.
----------, May 11, 2019

Due to PlaceholderApi removing the class that I'm using to register the placeholder, the old version's custom placeholder [%repairgui_custom_xxx%] will not work if you're using PlaceholderApi 2.10.2.

The issue has been fixed in this version.
----------, May 11, 2019

Added:
- support 1.14.
- added new placeholder.
Code (YAML):
# {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  
- added item type.

Warning: please use this new config to make sure the new placeholder {TYPE} works fine!
Code (YAML):
check-update : true

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

Open-GUI
:
    command
: true # "/repair" to open Repair GUI
    anvil
: true # open Repair GUI on anvil

repair-sound
:
    enable
: true
    sound
: BLOCK_ANVIL_USE
   
#Player are only allowed to open the "RepaiGui" if only the anvil was placed by an admin.
Only-Admin-Anvil
: true


#===================================================================#
# 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-type" too.
item-type
:
    DIAMOND
: '2000'
    GOLD
: '1500'
    CHAINMAIL
: '1000'
    IRON
: '500'
    STONE
: '250'
    WOODEN
: '20'
   
repair-cost
:

    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 required 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!'

 

Bug Fixed:
- fixed some small bugs.
----------, Apr 27, 2019

Bug Fixed:
- Players being able to put items that are not damaged into RepairGUI
----------, Apr 22, 2019

Below is the changelog for updates from 5.0 to 6.1

5.0
- Added Custom Currencies repair cost feature

6.0 Beta
- Recoded the plugin
- temporarily removed placeholder support and custom currency repair cost
- made a lot of changes in config.yml , repair.yml, multirepair.yml

6.0 Beta v2
- fixed "display_name" for item is not working
- added lore section for every item

6.0 Beta v3
- Fixed error when clicking stained glass pane / other items

6.0 Beta v4
- Fixed Only-Admin-Anvil is not working

6.1
- Fixed tridents can't be repaired
- Readded custom currencies repair cost feature
- Readded Placeholder Support

- Added bStats

Note: there's a changes in config.yml , message section
Code (YAML):
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!'
----------, Feb 2, 2019

Fixed GUI doesn't open when Only-Admin-Anvil is false
----------, Jan 23, 2019

Fixed error while clicking stained glass pane
----------, Jan 22, 2019

- Fixed display_name is not working
- Added lore for GUI section

Code (YAML):
GUI :  
    1
:
      type
: item
      item
:
        material
: STAINED_GLASS_PANE
        display_name
: ' '
        quantity
: 1
        data
: 1
        lore
:
       - 'this is a lore'
      slot
: 0
----------, Jan 22, 2019

IMPORTANT
1. There have been a lot of changes to the configs, old config is not compatible with the newer versions, please use the new config
2. "Custom currency" repair function will be temporarily removed in v6.0 but will be readded in v6.1!

Code (YAML):


check-update
: true

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

Gui-Name
: '&cRepair Gui'

Open-GUI
:
    command
: true # "/repair" to open Repair GUI
    anvil
: true # open Repair GUI on anvil

#Player are only allowed to open the "RepaiGui" if only the anvil was placed by an admin.
Only-Admin-Anvil
: true

#===================================================================#
# Available money/level/prices placeholders                         #
# {PLAYER_LEVEL} = shows player's level.                            #
#                                                                   #
# {PLAYER_MONEY} = shows player's money.                            #
#                                                                   #
# {PLAYER_MONEY_FORMATTED} = shows player's money with formatted.   #
#                                                                   #
# {PRICES_MONEY} = shows repair money cost.                         #
#                                                                   #
# {PRICES_MONEY_FORMATTED} = shows repair money cost with fomatted. #
#                                                                   #
# {PRICES_LEVEL} = shows repair level cost.                         #
#                                                                   #
# {DURABILITY} = shows item's broken durability.                    #
#                                                                   #
# {ENCHANTAMOUNT} = shows item's enchantment amount.                #
#                                                                   #
# Note: if item doesn't have any enchantments, it outputs 0.        #
#===================================================================#


Button
:
    accept
:
        item
: STAINED_GLASS
        display-name
: '&aAccept'
        data
: 5
        lore
:
        - '&cCost
: $ {PRICES_MONEY_FORMATTED } + {PRICES_LEVEL } levels + %repairgui_custom_tokenmanager% tokens'
        - '&aCurrent Money
: %vault_eco_balance%'
        - '&aCurrent Level
: {PLAYER_LEVEL } level'
        - '&bCurrent Tokens
: %tm_tokens%'
   
    cancel
:
        item
: STAINED_GLASS
        display-name
: '&cCancel'
        data
: 14
        lore
:
      - ''
        - ''

#===================================================================#
# Available placeholders for repair-cost                            #
# {DURABILITY} = shows item's broken durability.                    #
#                                                                   #
# {ENCHANTAMOUNT} = shows item's enchantment amount.                #
#                                                                   #
# Note: if item doesn't have any enchantments, it outputs 0.        #
#===================================================================#
repair-cost
:

    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_tokenmanager", "repairgui_custom_GemsEconomy"
    # Placeholder for custom cost:
    # %player_name% : output player's name
    # %cost% : output total repair cost
    custom
:
      enable
: false # This feature required PlaceholderAPI
      cost
:
        1
:
          name
: TokenManager
          type
: ' %tm_token%' #put the placeholder that show player's balance
          cost
: ' {Durability } / 2'
          command
: 'tokenmanager remove %player_name% %cost%' # Doesn't need to put "/"
   
        2
:
          name
: GemsEconomy
          type
: ' %gemseconomy_balance%'
          cost
: ' {Durability } / 100'
          command
: 'geco take %player_name% %cost%'
   

repair-sound
:
    enable
: true
    sound
: BLOCK_ANVIL_USE

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!'
    No-Permission
: '&cYou don''t have permission to do this!'

 

 
Code (YAML):
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
Code (YAML):
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
----------, Jan 21, 2019

Update:
- Available to use other plugin's economy to fix items! (Require PlaceholderAPI for this feature!)
Example in config
Code (YAML):
repair-cost :

    money
: true
    level
: true
    custom-cost
: false #This feature required PlaceholderAPI
    money-cost
: ' ( (10 * {Durability } ) + 200 ) / 2'
    level-cost
: ' {Durability } / 2'
 
 
    # Note: placeholder for showing custom cost. [repairgui_custom_<name>]
    # Example "repairgui_custom_tokenmanager"
 
    custom-cost
:
        tokenmanager
:
            #TokenManager Plugin
            type
: ' %tm_tokens%' #put the placeholder that show player's economy
            cost
: ' {Durability } / 2'
            command
: 'tokenmanager remove %player_name% %cost%'
       
Code (YAML):
check-update : true

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

Gui-Name
: '&cRepair Gui'

Open-GUI
:
    command
: true # "/repair" to open Repair GUI
    anvil
: true # open Repair GUI on anvil

#Player are only allowed to open the "RepaiGui" if only the anvil was placed by an admin.
Only-Admin-Anvil
: true

#===================================================================#
# Available money/level/prices placeholders                         #
# {PLAYER_LEVEL} = shows player's level.                            #
#                                                                   #
# {PLAYER_MONEY} = shows player's money.                            #
#                                                                   #
# {PLAYER_MONEY_FORMATTED} = shows player's money with formatted.   #
#                                                                   #
# {PRICES_MONEY} = shows repair money cost.                         #
#                                                                   #
# {PRICES_MONEY_FORMATTED} = shows repair money cost with fomatted. #
#                                                                   #
# {PRICES_LEVEL} = shows repair level cost.                         #
#                                                                   #
# {DURABILITY} = shows item's broken durability.                    #
#                                                                   #
# {ENCHANTAMOUNT} = shows item's enchantment amount.                #
#                                                                   #
# Note: if item doesn't have any enchantments, it outputs 0.        #
#===================================================================#


Button
:
    accept
:
        item
: STAINED_GLASS
        display-name
: '&aAccept'
        data
: 5
        lore
:
        - '&cCost
: $ {PRICES_MONEY_FORMATTED } + {PRICES_LEVEL } levels + %repairgui_custom_tokenmanager% tokens'
        - '&aCurrent Money
: {PLAYER_MONEY }'
        - '&aCurrent Level
: {PLAYER_LEVEL } level'
   
 
    cancel
:
        item
: STAINED_GLASS
        display-name
: '&cCancel'
        data
: 14
        lore
:
       - ''
        - ''

#===================================================================#
# Available placeholders for repair-cost                            #
# {DURABILITY} = shows item's broken durability.                    #
#                                                                   #
# {ENCHANTAMOUNT} = shows item's enchantment amount.                #
#                                                                   #
# Note: if item doesn't have any enchantments, it outputs 0.        #
#===================================================================#
repair-cost
:

    money
: true
    level
: true
    custom-cost
: false #This feature required PlaceholderAPI
    money-cost
: ' ( (10 * {Durability } ) + 200 ) / 2'
    level-cost
: ' {Durability } / 2'
 
 
    # Note: placeholder for showing custom cost. [repairgui_custom_<name>]
    # Example "repairgui_custom_tokenmanager", "repairgui_custom_test"

    custom-cost
:
        tokenmanager
:
            #TokenManager
            type
: ' %tm_tokens%' #put the placeholder that show player's economy
            cost
: ' {Durability } / 2'
            command
: 'tokenmanager remove %player_name% %cost%'
   
        #test:
        #    GemsManager
        #    type: '%gemseconomy_balance%'
        #    cost: '{Durability} / 100'
        #    command: 'geco take %player_name% %cost%'
   

repair-sound
:
    enable
: true
    sound
: BLOCK_ANVIL_USE

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!'
    no-permission
: '&cYou don''t have permission to do this!'

 
----------, Dec 12, 2018

- New Feature: you can customize the GUI now !!
- removed background from config.yml
- added gui.yml ( to setup your custom GUI )
Code (YAML):
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
    accept-button-slot
: 38
    cancel-button-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
----------, Oct 27, 2018

Bug Fixed:
- Gui background / accept button / cancel button aren't updated when reloading config
- Only-Admin-Anvil: false isn't working.

RepairGui 3.0 update information:
- Player can use EXP to repair item
- Placeholder changed.
{PLAYER_LEVEL} = shows player's level.
{PLAYER_MONEY} = shows player's money.
{PLAYER_MONEY_FORMATTED} = shows player's money with formatted.
{PRICES_MONEY} = shows repair money cost.
{PRICES_MONEY_FORMATTED} = shows repair money cost with fomatted.
{PRICES_LEVEL} = shows repair level cost.
{DURABILITY} = shows item's broken durability.
{ENCHANTAMOUNT} = shows item's enchantment amount.
Note: if item doesn't have any enchantments, it outputs 0.
- Updated config
Please delete old config.
Code (YAML):
check-update : true

Gui-Name
: '&cRepair Gui'

Open-GUI
:
    command
: true
    anvil
: true

#Player are only allowed to open the "RepaiGui" if only the anvil was placed by an admin.
Only-Admin-Anvil
: true

Background
:
    item
: STAINED_GLASS_PANE
    display_name
: ' '
    data
: 3
   
#===================================================================#
# Available money/level/prices placeholders                         #
# {PLAYER_LEVEL} = shows player's level.                            #
#                                                                   #
# {PLAYER_MONEY} = shows player's money.                            #
#                                                                   #
# {PLAYER_MONEY_FORMATTED} = shows player's money with formatted.   #
#                                                                   #
# {PRICES_MONEY} = shows repair money cost.                         #
#                                                                   #
# {PRICES_MONEY_FORMATTED} = shows repair money cost with fomatted. #
#                                                                   #
# {PRICES_LEVEL} = shows repair level cost.                         #
#                                                                   #
# {DURABILITY} = shows item's broken durability.                    #
#                                                                   #
# {ENCHANTAMOUNT} = shows item's enchantment amount.                #
#                                                                   #
# Note: if item doesn't have any enchantments, it outputs 0.        #
#===================================================================#

Button
:
    accept
:
        item
: STAINED_GLASS
        display-name
: '&aAccept'
        data
: 5
        lore
:
        - '&cCost
: $ {PRICES_MONEY_FORMATTED } + {PRICES_LEVEL } levels'
        - '&aCurrently Money
: {PLAYER_MONEY_FORMATTED }'
        - '&aCurrently Level
: {PLAYER_LEVEL } level'
       
    cancel
:
        item
: STAINED_GLASS
        display-name
: '&cCancel'
        data
: 14
        lore
:
       - ''
        - ''

#===================================================================#
# Available placeholders for repair-cost                            #
# {DURABILITY} = shows item's broken durability.                    #
#                                                                   #
# {ENCHANTAMOUNT} = shows item's enchantment amount.                #
#                                                                   #
# Note: if item doesn't have any enchantments, it outputs 0.        #
#===================================================================#
repair-cost
:

    money
: true
    level
: true

    money-cost
: ' ( (10 * {Durability } ) + 200 ) / 2'
    level-cost
: ' {Durability } / 2'
       
repair-sound
:
    enable
: true
    sound
: BLOCK_ANVIL_USE

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!'
    no-permission
: '&cYou don''t have permission to do this!'

 
----------, Oct 26, 2018

Added:
- Player are only allowed to open the "RepaiGui" if only the anvil was placed by an admin.

- A command to open repair GUI.
/repair
permisssion: repairgui.command

- An admin that placed the anvil will have every player to access the "RepaiGui"
Permission: repairgui.admin.anvil

- Changed reload config permission to repairgui.admin.reload

- New Placeholder {MONEY_FORMATTED} , {PRICES_FORMATTED}

Please delete the old config.
Code (Text):

check-update: true

Gui-Name: '&cRepair Gui'

Open-GUI:
    command: true
    anvil: true

#Player are only allowed to open the "RepaiGui" if only the anvil was placed by an admin.
Only-Admin-Anvil: true

Background:
    item: 160
    display_name: ''
    data: 3
   
#Available money/prices placeholders
# {MONEY} , {MONEY_FORMATTED} , {PRICES} , {PRICES_FORMATTED}
Button:
    accept:
        item: 95
        display-name: '&aAccept'
        data: 5
        lore:
        - '&cCost: {PRICES_FORMATTED}'
        - '&aCurrently Money: {MONEY_FORMATTED}'
       
    cancel:
        item: 95
        display-name: '&cCancel'
        data: 14
        lore:
        - ''
        - ''
       
   
# Available placeholders for repair-cost
# {DURABILITY}, {ENCHANTAMOUNT}
repair-cost: '((10 * {Durability}) + 200) / 2'

repair-sound:
    enable: true
    sound: BLOCK_ANVIL_USE

Message:
    not-enough-money: '&cYou don''t have enough money to repair this item!'
    no-permission: '&cYou don''t have permission to do this!'


 
----------, Oct 22, 2018

Bug Fixed:

- Player couldn't break anvil.

Shift + Left Click to break the anvil.
----------, Oct 21, 2018

Resource Information
Author:
----------
Total Downloads: 28,287
First Release: Oct 20, 2018
Last Update: Jun 22, 2024
Category: ---------------
All-Time Rating:
45 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings