Skip to content

Instantly share code, notes, and snippets.

@iGabyTM
Last active January 8, 2021 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iGabyTM/97a3a8e44259a8d704c098b20eecea32 to your computer and use it in GitHub Desktop.
Save iGabyTM/97a3a8e44259a8d704c098b20eecea32 to your computer and use it in GitHub Desktop.
⭐ TEUpgrades | GUI add-on for TokenEnchant ⭐

Commands & Permissions

Command Description Permission
/teu or /teupgrades Open the GUI teupgrades.access
/teu reload or /teupgrades reload Reload the plugin teupgrades.admin
#
# TEUpgrades v1.0.7 by GabyTM
# The plugin depends on TokenEnchant by vk2gpz
#
# • TokenEnchant - https://www.spigotmc.org/resources/2287/
# • Discord - https://gabytm.me/
#
messages:
calc:
message: '&9TE&8U &f» &aYou need at least {cost_commas} tokens to buy {levels} of {enchantment}'
usage: '&9TE&8U &f» &c/teu calc [enchantment] (levels)'
canNotBeEnchanted: '&9TE&8U &f» &cThe item that you are holding can''t be enchanted.'
buy:
usage: '&9TE&8U &f» &c/teu buy [enchantment] (levels)'
invalidEnchantment: '&9TE&8U &f» &c{enchantment} is not a valid enchantment!'
noPermission: '&9TE&8U &f» &cNo permission!'
notEnoughTokens: '&9TE&8U &f» You do not have enough tokens. You need at least {cost_commas} tokens.'
open:
usage: '&9TE&8U &f» &c/teu open [player]'
playersOnly: '&9TE&8U &f» &cOnly players can run this command!'
reload: '&9TE&8U &f» &aThe plugin has been successfully reloaded.'
reloading: '&9TE&8U &f» &cThe plugin is reloading, please try again later.'
repair: '&9TE&8U &f» &eYour item have been repaired. {cost_commas} tokens have been deducted.'
unknownCommand: '&9TE&8U &f» &cUnknown command!'
unknownPlayer: '&9TE&8U &f» &cUnknown player &n{input}&c.'
#
# Different values used on the plugin messages and gui items
#
defaultValues:
formatSuffix: # The suffixes used for '_formatted' placeholders
thousand: k
million: M
billion: B
trillion: T
quadrillion: Q
quintillion: E
romanNumeralsZero: '' # The value displayed when a "roman" placeholder return 0, set to '' if you want an empty value
gui:
title: '&9&nTE&8&nUPGRADES&r'
#
# The gui size, min 1, max 6
#
rows: 3
#
# The slots where the enchantments will be displayed
#
enchants:
- 10
- 11
- 12
- 13
- 14
- 15
- 16
#
# If enabled, the enchantment level will be displayed using the item amount
#
showLevelAsAmount: true
#
# If enabled, the player's item from hand will be displayed on the specified slot
#
itemFromHand:
enable: true
slot: 22
#
# If enabled, when the player hold any of the items listed bellow and right click with it,
# the GUI will be opened (if they have the permission and if the item has any
# enchantments available)
#
# The GUI won't open if the player click on one of the blocks
# listed on the 'blocksBlackList' section. To disable that option, use 'blocksBlackList: []'
# Materials list:
# • Latest - https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
# • 1.14.4 - https://helpch.at/docs/1.14.4/org/bukkit/Material.html
# • 1.13.2 - https://helpch.at/docs/1.13.2/org/bukkit/Material.html
# • 1.12.2 - https://helpch.at/docs/1.12.2/org/bukkit/Material.html
# • 1.11.2 - https://helpch.at/docs/1.11.2/org/bukkit/Material.html
# • 1.10.2 - https://helpch.at/docs/1.10.2/org/bukkit/Material.html
# • 1.9.4 - https://helpch.at/docs/1.9.4/org/bukkit/Material.html
# • 1.8.8 - https://helpch.at/docs/1.8.8/org/bukkit/Material.html
#
openWithItem:
enable: true
sneak: false
items:
- DIAMOND_PICKAXE
blacklistedBlocks:
- SIGN
- SIGN_POST
- WALL_SIGN
- CHEST
- ENDER_CHEST
#
# The default items ('back' and 'next' are the buttons used to switch the page)
# Note! The buttons will only be displayed if there's enough enchantments for extra pages
#
# • slot - (required) where the item will be placed, use 'slots' for multiple slots (must be a list)
# • material - (required) the material
# • data - (optional) the item data (or damage)
# • glow - (optional) if enabled, the item will glow (default - false)
# • unbreakable - (optional) if enabled, the item will be unbreakable (default - false)
# • display_name - (optional) the item display name
# • lore - (optional) the item lore
# • customModelData - (optional - 1.14+ only) set a custom model id for resource packs
#
items:
border:
enable: true
slots: # or [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 17, 18, 19, 20, 24, 25, 26]
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 17
- 18
- 19
- 20
- 24
- 25
- 26
material: STAINED_GLASS_PANE
data: 7
display_name: ' '
#
# Repair your item in exchange of tokens
# If 'useTERepairCost' is enabled, the price will be handled by TokenEnchant
# otherwise the price will be the value of 'custom'
#
repair:
enable: true
cost:
useTERepairCost: true
custom: 100
material: ANVIL
slot: 23
display_name: '&aRepair for {cost}'
#
# Page placeholders:
# • {current_page} - the current page
# • {next_page} - the next page
# • {previous_page} - the previous page
# • {total_page} - the total amount of pages
#
back:
slot: 20
material: ARROW
display_name: '&cPrevious page &7(&c{previous_page}&7/&c{total_pages}&7)'
next:
slot: 24
material: ARROW
display_name: '&aNext page &7(&a{next_page}&7/&a{total_pages}&7)'
#
# Extra items used for design, more can be added and support all customization
# options as above (material, data, glow, unbreakable, display_name and lore)
#
# Placeholders:
# • {tokens} - the current balance (274.41)
#
# Some placeholders support the following suffixes for extra formats:
# • _rounded - the value without decimals (%%__NONCE__%%)
# • _commas - the value formatted with commas (23,674,197)
# • _formatted - the value formatted with k, M, B .. (12k)
# • _roman - the value formatted with roman numerals (MCCXXXIV)
#
other:
balance:
slot: 21
material: DOUBLE_PLANT
glow: true
display_name: '&1• &9Tokens: &f{tokens_commas}'
#
# The enchantments list, the first line is the enchantment name and must be valid
# A complete list of TE Enchantment can be found here https://spigotmc.org/resources/2287/
#
# The 'general' item is displayed when the enchantment haven't reached it max level and the
# 'max' item is displayed when it did. Items support the same customization options as above
#
# Placeholders: (support suffixes)
# • {level} - the enchanted level
# • {next_level} - the enchanted next level
# • {max_level} - the enchanted max level
# • {price} - the enchant price
#
enchants:
Unbreaking:
general:
material: FIREBALL
display_name: '&3● &bUnbreaking {level_roman}'
lore:
- ''
- '&8● &7Adds &f+1 &7Unbreaking level'
- '&7to your item in hand.'
- ''
- '&8● &7Price: &f{price_commas}'
- ''
- '&2● &aClick to apply!'
max:
material: FIREBALL
glow: true
display_name: '&3● &bUnbreaking {level_roman}'
lore:
- ''
- '&8● &7Adds &f+1 &7Unbreaking level'
- '&7to your item in hand.'
- ''
- '&6● &eMax level'
@dkim19375
Copy link

How do I use this plugin since it's not a JAR file??

@iGabyTM
Copy link
Author

iGabyTM commented Oct 6, 2020

How do I use this plugin since it's not a JAR file??

This is only the configuration.

@NotADevv
Copy link

NotADevv commented Jan 8, 2021

I purchased this plugin from MC-Market and when I try to use it, only the Unbreaking enchant shows up in the GUI for any item. Also, I can't find your discord server on MC-Market anywhere so I can't join for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment