RequiredItemsLevel
1.3.2A custom level system and the ability to set the level necessary for the use of any item
Description: A custom level system and the ability to set the level necessary for the use of any item
Commands:
- /ril <level> - Set item level
Plugin has only one configuration file:
config.yml (EN)
#############################
# RequiredItemsLevel #
# Made by GameDoctor #
# 2023 #
#############################
lore: # It is added to the lore of the subject at the end
- "&7&lLevel &a&l%level%"
levels:
1:
need: 0
2:
need: 100 # Indicates the amount of experience required to reach this level
3:
need: 100
4:
need: 1000
actions: # Here you can configure for which action how much experience will be given
kill: # Correct names of entities can be found in https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html
PLAYER: 10
ZOMBIE: 10
SKELETON: "10-50" # Random integer from 10 to 50 (Must be in quotes)
break: # The correct block names can be found in https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
IRON_ORE: 10
OBSIDIAN: 10
place: # The correct block names can be found in https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
IRON_BLOCK: 10
messages: # For each alert, you can specify both a message on the screen and a message in the chat
level_up:
title:
enable: true # Display is optional
line1: "&6&lLEVEL UP!"
line2: "&c%pr_level%&7->&a&l%level%" # %pr_level% - Previous level
chat:
enable: true
message:
- "&7!!! &6LEVEL UP &7!!!"
- "&7Now your level: &a&l%level%"
get_exp_kill:
title:
enable: true
line1: "&aYou killed &c&n%entity%"
line2: "&9Gained experience: %exp%"
chat:
enable: true
message:
- "&7You received &9%exp%&7 &8(&c%now%&7/&a%need%&8)&7 experience for murder &c&n%entity%&7. Booster: &ex%booster%"
get_exp_break:
title:
enable: true
line1: "&aYou broke &c&n%block%"
line2: "&9Gained experience: %exp%"
chat:
enable: true
message:
- "&7You received &9%exp%&7 &8(&c%now%&7/&a%need%&8)&7 experience for breaking block &c&n%block%&7. Booster: &ex%booster%"
get_exp_place:
title:
enable: true
line1: "&aYou place &c&n%block%"
line2: "&9Gained experience: %exp%"
chat:
enable: true
message:
- "&7You received &9%exp%&7 &8(&c%now%&7/&a%need%&8)&7 experience for placing block &c&n%block%&7. Booster: &ex%booster%"
cannot_use:
title:
enable: true
line1: "&4&lERROR"
line2: "&c&lRequired level: &6&l%need%"
chat:
enable: true
message:
- "&cYou must be &6&l%need%&c level to use this. Your level: &4&l%level%"
boosters: # Experience boost by permission. Player must have only one permission or permissions must be sorted by booster size (small to high)
kill: # Experience boost for kill
x2: # Integers only
enable: false
permission: "ril.booster.kill.x2"
x3:
enable: false
permission: "ril.booster.kill.x3"
break: # Experience boost for block break
x2: # Integers only
enable: false
permission: "ril.booster.break.x2"
x3:
enable: false
permission: "ril.booster.break.x3"
place: # Experience boost for block place
x2: # Integers only
enable: false
permission: "ril.booster.place.x2"
x3:
enable: false
permission: "ril.booster.place.x3"
commands:
ril:
permission: "requireditemslevel.use"
no_permission:
- "&cYou don't have enough permissions"
usage:
- "&cUsage: /%command% <level>"
success:
- "&a&lSuccessfully!"
failed_no_item:
- "&cYou have to hold the item in the main hand"
failed_incorrect_number:
- "&cInvalid number is specified"config.yml (RU)
#############################
# RequiredItemsLevel #
# Made by GameDoctor #
# 2023 #
#############################
lore: # Добавляется к лору предмета в самый конец
- "&7&lУровень &a&l%level%"
levels:
1:
need: 0
2:
need: 100 # Означает количество опыта, которое требуется для достижения этого уровня
3:
need: 100
4:
need: 1000
actions: # Здесь можно настроить, за какое действие сколько опыта будет выдаваться
kill: # Корректные названия существ можно найти в https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html
PLAYER: 10
ZOMBIE: 10
SKELETON: "10-50" # Случайное целое число от 10 до 50 (должно быть заключено в кавычки)
break: # Корректные названия блоков можно найти в https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
IRON_ORE: 10
OBSIDIAN: 10
place: # Корректные названия блоков можно найти в https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
IRON_BLOCK: 10
messages: # Для каждого оповещения можно указать как сообщение на экране, так и сообщение в чате
level_up:
title:
enable: true # Отображение опционально
line1: "&6&lУровень повышен!"
line2: "&c%pr_level%&7->&a&l%level%" # %pr_level% - Предыдущий уровень
chat:
enable: true
message:
- "&7!!! &6Уровень повышен &7!!!"
- "&7Теперь ваш уровень: &a&l%level%"
get_exp_kill:
title:
enable: true
line1: "&aВы убили &c&n%entity%"
line2: "&9Получено опыта: %exp%"
chat:
enable: true
message:
- "&7Вы получили &9%exp%&7 &8(&c%now%&7/&a%need%&8)&7 опыта за убийство &c&n%entity%&7. Бустер: &ex%booster%"
get_exp_break:
title:
enable: true
line1: "&aВы сломали &c&n%block%"
line2: "&9Получено опыта: %exp%"
chat:
enable: true
message:
- "&7Вы получили &9%exp%&7 &8(&c%now%&7/&a%need%&8)&7 опыта за разрушение &c&n%block%&7. Бустер: &ex%booster%"
get_exp_place:
title:
enable: true
line1: "&aВы поставили &c&n%block%"
line2: "&9Получено опыта: %exp%"
chat:
enable: true
message:
- "&7Вы получили &9%exp%&7 &8(&c%now%&7/&a%need%&8)&7 опыта за постановку &c&n%block%&7. Бустер: &ex%booster%"
cannot_use:
title:
enable: true
line1: "&4&lОшибка"
line2: "&c&lТребуется уровень &6&l%need%"
chat:
enable: true
message:
- "&cВы должны быть &6&l%need%&c уровня для использования этого. Ваш уровень: &4&l%level%"
boosters: # Бустеры опыта по разрешениям (правам). У игрока должно быть только одно разрешение, или разрешения должны быть отсортированы по размеру бустера (от маленького до большого).
kill: # Буст опыта за килы
x2: # Только целые числа
enable: false
permission: "ril.booster.kill.x2"
x3:
enable: false
permission: "ril.booster.kill.x3"
break: # Буст опыта за разрушение блока
x2: # Только целые числа
enable: false
permission: "ril.booster.break.x2"
x3:
enable: false
permission: "ril.booster.break.x3"
place: # Буст опыта за постановку блока
x2: # Только целые числа
enable: false
permission: "ril.booster.place.x2"
x3:
enable: false
permission: "ril.booster.place.x3"
commands:
ril:
permission: "requireditemslevel.use"
no_permission:
- "&cУ вас недостаточно прав"
usage:
- "&cИспользование: /%command% <уровень>"
success:
- "&a&lУспешно!"
failed_no_item:
- "&cВы должны держать предмет в главной руке"
failed_incorrect_number:
- "&cУказано неверное число"Demonstation:
Screenshots (EN)
Screenshots (RU)
Using HEX colors
EN
The HEX color format in the plugin is similar to the one used in the infamous Essentials plugin. For the convenience of generating HEX text gradients, there is a website https://spigot.kosfarix.ru/hex
But keep in mind that variables (%player%, %color%, and so on) cannot be converted to this format.
RU
Формат HEX цветов в плагине похож на тот, что используется в небезызвестном плагине Essentials. Для удобства генерации HEX градиентов текста существует сайт https://spigot.kosfarix.ru/hex
Но имейте в виду, что переменные (%player%, %color% и так далее) нельзя переводить в этот формат.
Note: If you want additional functionality to be added to the plugin, just write about it in the discussion
Installation:
Download, drop it in plugins folder and restart your server
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta