✦ JetsRepairTokens ✦ [1.8-1.20] SUPPORTED! ✦ Repair by certain durability!

Plugins ✦ JetsRepairTokens ✦ [1.8-1.20] SUPPORTED! ✦ Repair by certain durability!

Version: 3.16
Versions
  1. 1.8
  2. 1.9
  3. 1.10
  4. 1.11
  5. 1.12
  6. 1.13
  7. 1.14
  8. 1.15
  9. 1.16
  10. 1.17
  11. 1.18
  12. 1.19
  13. 1.20

PayPal is currently disabled, while I work on this, For those who require support/to purchase the resource can do so on our Discord.

3X0BJNO.png
This plugin provides the functionality to create unlimited, different Repair Tokens with different durability assigned to them. When a user uses a token and tool together, this tool will be repaired by this a predefined amount.

This plugin can be used in all types of gamemodes including Survival, SkyBlock, Factions and Prison.

Versions from 1.8 - 1.20 supported!


Come and join our official Discord Server!​

qCu7Mvw.png

  • Create unlimited Repair Tokens
  • Set the durability amount (the number of uses) that each repair token repairs by
  • Modify each Repair Token to your liking
  • Modify the list of Materials that these Repair Tokens can be applied to
  • No dependencies required
  • Extremely customisable
  • API For developers
MZDAGfW.png

bb64e6783d42b08111e23c4215c57cc5.gif


mXXhL99.png


- /RepairToken give <player> <repairtoken> <amount> - Gives a user a specified repair token - Permission jetsrepairtoken.admin.give
- /RepairToken giveall <repairtoken> <amount> - Gives all users online a specified repair token - Permission jetsrepairtoken.admin.giveall
- /RepairToken reload - Reloads the configuration file - Permission jetsrepairtoken.admin.reload
- /RepairToken list - Lists all valid tokens - Permission jetsrepairtoken.admin.list
- /RepairToken about - Lists information about the plugin

Instead of using /RepairToken, the alias /rt can be used!

oNdnvPE.png

1. Place the jar within the 'plugins' directory
2. Run the server to produce the configuration file
3. Edit the Configuration file to your liking
4. Run the command /rt reload to reload the configuration file

2BTyYdL.png

Code:
#Messages
#Plugins prefix
PluginsPrefix: "&7[&aRepair&bToken&7] "

#Message that is shown if an item is clicked on an invalid item
InvalidItem: "%PREFIX%&cThis item cannot be repaired!"
#Message that is shown if the item is already fully repaired
ItemAlreadyFullyRepaired: "%PREFIX%&cThis item is already fully repaired!"
#Message that is shown if the item has been fully repaired by the repair token
FullyRepaired: "%PREFIX%&aThis item is now fully repaired!"
#Message that is shown if the item has been partly repaired
PartlyRepaired: "%PREFIX%&aThis item has been repaired by &c%DURABILITY% &auses!"
#Message that is shown if a user does not have access to that command
NoPermission: "%PREFIX%&cNo Permission!"
#Should repair tokens be stackable?
Stackable: true

#The message that is sent to the player when a repair token is given to the that user (when the give command is used)
#Use %NAME% to get the displayname of the item
#Use %NUMBER% to get the amount given
#Type "none" for no message to show
ReceivedRepairToken: "%PREFIX%&aYou have received a %NUMBER% %NAME%"

#Use %NAME% to get the displayname of the item
#Use %NUMBER% to get the amount given
#TYhe message that is sent to the player when everyone on the server receives a token (when the giveall command is used)
#Type "none" for no message to show
AllReceivedRepairToken: "%PREFIX%&aEveryone has just received %NUMBER% %NAME%!"

#Repair Items
RepairItems:
  Repair1: #The name of the item (used in the give command)
    item: NETHER_STAR #Must be a valid material (https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html)
    data: 0 #Used for further material data (Not needed for 1.13)
    repairDurability: 10 #The amount that it will repair the items durability by
    name: "&eRepair Token &7(Tier I)" #Items name
    lore: #Lore of the item
      - "&7Increase an items durability by"
      - "&c%DURABILITY%"
      - "&7Drag this item onto another to repair it!"
    setGlow: true #Whether you want the item to have a glow
    spawnParticles: true #Whether you want a helix to show
    permission: "none" #Whether you want a permission for it to be useable
    sound: BLOCK_NOTE_BLOCK_PLING # >>>> USE BLOCK_NOTE_PLING if on 1.12.2 !!! <<<< The sound to play, simply type NONE if you wish a sound not play
  Repair2:
    item: NETHER_STAR
    data: 0
    repairDurability: 50% #You can also do %, so this will repair the item by an additional 50%
    name: "&eRepair Token &7(Tier II)"
    lore:
      - "&7Increase an items durability by"
      - "&c%DURABILITY%"
      - "&7Drag this item onto another to repair it!"
    setGlow: true
    spawnParticles: true
    permission: "none"
    sound: BLOCK_NOTE_BLOCK_PLING
  Repair3:
    item: NETHER_STAR
    data: 0 #Used for further material data
    repairDurability: 200
    name: "&eRepair Token &7(Tier III)"
    lore:
      - "&7Increase an items durability by"
      - "&c%DURABILITY%"
      - "&7Drag this item onto another to repair it!"
    setGlow: true
    spawnParticles: true
    permission: "none"
    sound: BLOCK_NOTE_BLOCK_PLING

#Stores the list of items that a token can be applied to
ValidItems:
  - DIAMOND_PICKAXE
  - GOLD_PICKAXE
  - IRON_PICKAXE
  - STONE_PICKAXE
  - WOOD_PICKAXE
  - DIAMOND_AXE
  - GOLD_AXE
  - IRON_AXE
  - STONE_AXE
  - WOOD_AXE
  - DIAMOND_HOE
  - GOLD_HOE
  - IRON_HOE
  - STONE_HOE
  - WOOD_HOE
  - STONE_SPADE
  - DIAMOND_SPADE
  - GOLD_SPADE
  - IRON_SPADE
  - WOOD_SPADE
  - LEATHER_BOOTS
  - LEATHER_CHESTPLATE
  - LEATHER_LEGGINGS
  - LEATHER_HELMET
  - CHAINMAIL_BOOTS
  - CHAINMAIL_CHESTPLATE
  - CHAINMAIL_HELMET
  - CHAINMAIL_LEGGINGS
  - IRON_BOOTS
  - IRON_LEGGINGS
  - IRON_CHESTPLATE
  - IRON_HELMET
  - DIAMOND_LEGGINGS
  - DIAMOND_CHESTPLATE
  - DIAMOND_HELMET
  - DIAMOND_BOOTS
  - GOLD_HELMET
  - GOLD_CHESTPLATE
  - GOLD_LEGGINGS
  - GOLD_BOOTS
  - BOW
  - FLINT_AND_STEEL
  - SHEARS
  - FISHING_ROD
  - DIAMOND_SWORD
  - GOLD_SWORD
  - IRON_SWORD
  - STONE_SWORD
  - WOOD_SWORD

v1dcf3k.png

The plugin has one event located here: me.jet315.repairtokens.events.TokenUseEvent
This event is called when a Repair Token is about to be consumed
Example:
Code:
@EventHandler
public void onTokenUse(TokenUseEvent e){
    //Check if the item being clicked is a wooden pickaxe
    if(e.getClickedItem().getType() == Material.WOOD_PICKAXE){
        //Check if the player doing it is called jet315
        if(e.getPlayer().getName().equalsIgnoreCase("jet315")){
            //Check if the repair token is a Nether Star
            if(e.getRepairItem().getItemStack().getType() == Material.NETHER_STAR){
                //Prevent jet315 from using the Repair Token!
                e.setCancelled(true);
            }
        }
    }
}

z2HNRTd.png

Simply send me a message via Spigot

BWDjaWz.png

By buying this plugin you agree to the following terms:
  • You will not chargeback - If you have a problem message me, in most cases I will happily refund the purchase (If within 48 Hours of purchase)
  • I cannot guarantee support indefinitely.
  • You may not redistribute or resell this plugin or any part of it
  • I may refuse to give you support with or without any specific reason
  • If you have an issue with this plugin, please contact me before leaving a 1 or low star rating
  • Basic metrics are gathered including server version, plugin version, and players on the server
  • I can update this terms of use at any time, without notification
Thanks!

Uploader


Downloads
13
Views
1,370
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from ArteffCods

Latest updates

  1. 3.16 - 26.1 support

    [+] 26.1 Support
  2. 3.14 - Update

    [+] Support for 1.8.8 - 1.21.8
  3. 3.13 - 1.21.5 Support

    [+] Fixed/added support for 1.21.5