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

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

Version: 3.14
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

[IMG]

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!

[IMG]
Come and join our official Discord Server!

[IMG]

  • 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
[IMG]

[IMG]


[IMG]


- /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!

[IMG]

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

[IMG]

Spoiler: config.yml

[IMG]

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:

Java:
@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);
            }
        }
    }
}


[IMG]

Simply send me a message via Spigot

Uploader


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

More resources from ArteffKods

Latest updates

  1. 3.14 - Update

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

    [+] Fixed/added support for 1.21.5
  3. 3.12 - Bug fix

    [+] Fixes custom model data