BottledXP

插件

· 作者 PattyXDHD

通过指令、交互或库存 GUI 将经验值转换为瓶子。

0 本站下载 0 关注 更新于 5 个月前

最新 1.0.7 · 26.1.2 · Bukkit / Paper

一键开服(送7天)

BottledXP - 将经验值装入瓶中

使用此插件,你可以将经验值转换为经验瓶。你可以通过命令、交互或库存 GUI 来完成此操作。

命令与权限:

命令:

  • /bottledxp help(无需权限)
  • /bottledxp info(bottledxp.info)
  • /bottledxp info <Name>(bottledxp.info.other)
  • /bottledxp fill(bottledxp.fill.completeLevel)
  • /bottledxp fill <Amount>(bottledxp.fill.amount)
  • /bottledxp reload(bottledxp.reload)
  • /bottledxp gui(bottledxp.gui)
  • /bottledxp convert(bottledxp.convert)

其他权限:

  • bottledxp.interact(用于方块交互)
  • bottledxp.interact.completeLevel(潜行点击时将全部经验值装入瓶中)
  • bottledxp.interact.convert(将库存中的所有经验瓶转换回经验值)

config.yml:

config.yml

#    /$$$$$$$              /$$     /$$     /$$                 /$$ /$$   /$$ /$$$$$$$
#    | $$__  $$            | $$    | $$    | $$                | $$| $$  / $$| $$__  $$
#    | $$  \ $$  /$$$$$$  /$$$$$$ /$$$$$$  | $$  /$$$$$$   /$$$$$$$|  $$/ $$/| $$  \ $$
#    | $$$$$$$  /$$__  $$|_  $$_/|_  $$_/  | $$ /$$__  $$ /$$__  $$ \  $$$$/ | $$$$$$$/
#    | $$__  $$| $$  \ $$  | $$    | $$    | $$| $$$$$$$$| $$  | $$  >$$  $$ | $$____/
#    | $$  \ $$| $$  | $$  | $$ /$$| $$ /$$| $$| $$_____/| $$  | $$ /$$/\  $$| $$
#    | $$$$$$$/|  $$$$$$/  |  $$$$/|  $$$$/| $$|  $$$$$$$|  $$$$$$$| $$  \ $$| $$
#    |_______/  \______/    \___/   \___/  |__/ \_______/ \_______/|__/  |__/|__/

#            by PattyXDHD with ♥

# Change the language
# default available: en_US, de_DE
language: 'en_US'

# XP points you earn per bottle
xpPerBottle: 7

# List of all sounds: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
# To use no sound, enter ‘NONE’ as the sound
sounds:
  use: true
  volume: 0.2
  successfulSound: 'ENTITY_PLAYER_LEVELUP'
  failSound: 'ENTITY_BAT_HURT'
  inventoryClickSound: 'UI_BUTTON_CLICK'
  helpSound: 'ENTITY_ITEM_PICKUP'
  failChangeGuiNumber: 'BLOCK_ANVIL_PLACE'

# disables the interaction and replaces it with the GUI
replaceInteractWithGUI: false

# Use a block interaction to fill XP bottles.
# List of all materials: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
blockInteractFill:
  use: true
  block: 'EMERALD_BLOCK'
  usedItem: 'GLASS_BOTTLE'
  bottlesPerClick: 1
  infoTitleStayTime: 5

# Use a block interaction to Convert your XP-Bottles to normal XP
blockInteractConvert:
  use: true
  block: 'EMERALD_BLOCK'
  usedItem: 'EXPERIENCE_BOTTLE'

# Change the calculation quantity in the inventory.
inventory:
  minusAmountNormal: 1
  minusAmountShift: 10
  plusAmountNormal: 1
  plusAmountShift: 10

en_US.yml:

Language English

#
#    ,------.               ,--.,--.       ,--.
#    |  .---',--,--,  ,---. |  |`--' ,---. |  ,---.
#    |  `--, |      \| .-. ||  |,--.(  .-' |  .-.  |
#    |  `---.|  ||  |' '-' '|  ||  |.-'  `)|  | |  |
#    `------'`--''--'.`-  / `--'`--'`----' `--' `--'
#                    `---'
#       Translated by PattyXDHD

# Command & Console Messages
messages:
  prefix: '&8▌ &2BottledXP &8» &7'
  noPerm: '&4You don''t have Permission for that.'
  reload: '&aYou have successfully reloaded the plugin.'
  help:
    - ''
    - '&7===========[ &aBottledXP &7]==========='
    - '&e/bottledxp reload  &8-  &7Reloads the plugin configuration.'
    - '&e/bottledxp info [Name]  &8-  &7Displays your XP and bottle details.'
    - '&e/bottledxp fill [Anzahl] &8-  &7Convert your XP into bottles.'
    - '&e/bottledxp gui  &8-  &7Opens the BottledXP-GUI.'
    - '&e/bottledxp convert  &8-  &7Converts all your XP-Bottles to normal XP.'
    - ''
  info:
    - ''
    - '&7===========[ &aBottledXP &7]==========='
    - '&7You currently have &e%xp% &7XP. &7(%level% levels / %points% XP-Points)'
    - '&7Space for &e%space% &7XP-Bottles.'
    - '&aYou can fill &e%bottles% &aXP-Bottles.'
    - ''
  infoOther:
    - ''
    - '&7===========[ &aBottledXP &7]==========='
    - '&7Info from: &6%playerName%'
    - '&7You currently have &e%xp% &7XP. &7(%level% levels / %points% XP-Points)'
    - '&7Space for &e%space% &7XP-Bottles.'
    - '&aYou can fill &e%bottles% &aXP-Bottles.'
    - ''
  notEnoughXP: '&cYou don''t have enough XP.'
  notEnoughSpace: '&cYou don''t have enough space in your inventory.'
  filled: '&aYou have successfully bottled your XP.'
  noWholeNumber: '&c%noNumber% &4is not a whole number.'
  zeroBottles: '&4It is not possible to obtain &c0 XP-Bottles&4.'
  filledAmount: '&aYou have filled &e%filled% &aXP-Bottles.'
  useHelp: '&4Use &e/bottledxp help &4for help.'
  playerNotOnline: '&cThe player &e%name% &cisn''t online.'
  convertNoXPBottles: '&cYou don''t have any XP bottles in your inventory.'
  convertSuccessful: '&aYou have converted &e%bottles% &aXP-Bottles into XP. &7(%level% levels / %points% XP-Points)'

# Messages for Interaction Fill
blockInteractFill:
  filledMessage: '&aYou can still fill &e%bottles% &aXP-Bottles.'
  filledAllMessage: '&aYou have filled &e%bottles% &aXP-Bottles.'
  hotbarMessageNoPerm: '&cYou don''t have Permission for that.'
  notEnoughXP: '&cYou don''t have enough XP.'
  notEnoughSpace: '&cYou don''t have enough space in your inventory.'
  infoTitleFirstLine: '&e%bottles% XP-Bottles &acan be filled.'
  infoTitleSecondLine: '&7Your XP: &e%xp% &7XP &8| &7Inventory slots: &e%space%'

# Messages for Interaction Convert
blockInteractConvert:
  hotbarMessageNoPerm: '&cYou don''t have Permission for that.'
  convertNoXPBottles: '&cYou don''t have any XP bottles in your inventory.'
  convertSuccessful: '&aYou have converted &e%bottles% &aXP-Bottles into XP.'

物品栏 GUI 的文本与消息

inventory: inventoryName: '&8▌ &2BottledXP' infoItemName: '&8▌ &a经验值信息' infoItemLore: - '' - '&7你当前拥有 &e%xp% &7经验值。&7(%level% 等级 / %points% 经验值点数)' - '&7可容纳 &e%space% &7个经验瓶。' - '&a你可以填充 &e%bottles% &7个经验瓶。' - '' applyItem: '&a点击将经验值转换为经验瓶。' minusItem: '&c- %normal% &7(Shift+点击:-%shift%)' plusItem: '&a+ %normal% &7(Shift+点击:+%shift%)' mathLore: - '' - ' &7你将获得 &e%bottle% &7个经验瓶。 ' - ' &7- 转换后:&a%level% &7等级 / &a%points% &7经验值点数' - '' convertItem: '&a点击将经验瓶转换回经验值。' convertItemMathLore: - '' - ' &7你可以将 &e%bottles% &7个经验瓶转换为经验值。 ' - ' &7- 转换后:&a%level% &7等级 / &a%points% &7经验值点数' - ''


</details>

**de_DE:**

<details>
<summary>Language German</summary>

,----.

' .-./ ,---. ,--.--.,--,--,--. ,--,--.,--,--,

| | .---.| .-. :| .--'| |' ,-. || \

' '--' |\ --.| | | | | |\ '-' || || |

------' ----'--' ------' ----'`--''--'

Translated by PattyXDHD

Command & Console Messages

messages: prefix: '&8▌ &2BottledXP &8» &7' noPerm: '&4你没有权限执行此操作。' reload: '&a插件已成功重新加载。' help: - '' - '&7===========[ &aBottledXP &7]===========' - '&e/bottledxp reload &8- &7重新加载插件配置。' - '&e/bottledxp info [Name] &8- &7显示你的经验值和瓶子信息。' - '&e/bottledxp fill [数量] &8- &7将你的经验值转换为瓶子。' - '&e/bottledxp gui &8- &7打开 BottledXP 图形界面。' - '&e/bottledxp convert &8- &7将你的经验瓶转换回普通经验值。' - '' info: - '' - '&7===========[ &aBottledXP &7]===========' - '&7当前你拥有 &e%xp% &7经验值。&7(%level% 等级 / %points% 经验值点数)' - '&7剩余空间可容纳 &e%space% &7个经验瓶。' - '&a你可以填充 &e%bottles% &7个经验瓶。' - '' infoOther: - '' - '&7===========[ &aBottledXP &7]===========' - '&7目标玩家:&6%playerName%' - '&7当前你拥有 &e%xp% &7经验值。&7(%level% 等级 / %points% 经验值点数)' - '&7剩余空间可容纳 &e%space% &7个经验瓶。' - '&a你可以填充 &e%bottles% &7个经验瓶。' - '' notEnoughXP: '&c你的经验值不足。' notEnoughSpace: '&c你的背包中没有足够的空间。' filled: '&a你已成功将经验值灌装到瓶中。' noWholeNumber: '&c%noNumber% &4不是一个整数。' zeroBottles: '&4无法获得 &c0 个经验瓶。' filledAmount: '&a你已灌装了 &e%filled% &7个经验瓶。' useHelp: '&4请使用 &e/bottledxp help &4获取帮助。' playerNotOnline: '&c玩家 &e%name% &c不在线。' convertNoXPBottles: '&c你的背包中没有经验瓶。' convertSuccessful: '&a你已将 &e%bottles% &7个经验瓶转换回经验值。&7(%level% 等级 / %points% 经验值点数)'

Messages for Interaction Fill

blockInteractFill: filledMessage: '&a你还可以填充 &e%bottles% &7个经验瓶。' filledAllMessage: '&a你总共已灌装了 &e%bottles% &7个经验瓶。' hotbarMessageNoPerm: '&c你没有权限执行此操作。' notEnoughXP: '&c你的经验值不足。' notEnoughSpace: '&c你的背包中没有足够的空间。' infoTitleFirstLine: '&e%bottles% &7个经验瓶可填充。' infoTitleSecondLine: '&7你的经验值:&e%xp% &7经验值 &8| &7背包空间:&e%space%'

Messages for Interaction Convert

blockInteractConvert: hotbarMessageNoPerm: '&c你没有权限执行此操作。' convertNoXPBottles: '&c你的背包中没有经验瓶。' convertSuccessful: '&a你已将 &e%bottles% &7个经验瓶转换回经验值。'

Text and Messages for the inventory GUI

inventory: inventoryName: '&8▌ &2BottledXP' infoItemName: '&8▌ &a经验值信息' infoItemLore: - '' - '&7当前你拥有 &e%xp% &7经验值。&7(%level% 等级 / %points% 经验值点数)' - '&7剩余空间可容纳 &e%space% &7个经验瓶。' - '&a你可以填充 &e%bottles% &7个经验瓶。' - '' applyItem: '&a点击将经验值转换为经验瓶。' minusItem: '&c- %normal% &7(Shift+点击:-%shift%)' plusItem: '&a+ %normal% &7(Shift+点击:+%shift%)' mathLore: - '' - ' &7你将获得 &e%bottle% &7个经验瓶。 ' - ' &7- 转换后:&a%level% &7等级 / &a%points% &7经验值点数' - '' convertItem: '&a点击将经验瓶转换回经验值。' convertItemMathLore: - '' - ' &7你可以将 &e%bottles% &7个经验瓶转换为经验值。 ' - ' &7- 转换后:&a%level% &7等级 / &a%points% &7经验值点数' - ''


</details>

**截图:**

![help command 1.0.5](https://cdn.modrinth.com/data/cached_images/f9fd3bcf1b3540ebe915327373822a397b614981.png)

![info command 1.0.5](https://cdn.modrinth.com/data/cached_images/1ca6766a4991271d935a528f12c23bc1bdb2e484.png)

更多截图请查看画廊!

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源