前往任意经验银行告示牌,查看自己的统计数据,并存取经验值。只需一个经验银行告示牌即可管理整个服务器的经验值。
[Experience Bank II v0.1.0]
此插件应 Stormbow 的要求而创建(去看看他的主页吧 :) )
它使用与我另一个插件类似的机制:Individual Signs Plus
- 你可以走到任意经验银行告示牌前查看你自己的统计数据!
- 没有任何限制,多人可以同时查看和使用同一个告示牌
- 你可以放置任意数量的告示牌
- 告示牌的位置永远不会存储在数据库中
- 完全可配置的告示牌文本(提供6个占位符供选择)
- 100% 兼容 1.8 版本的 UUID
- 可选的 MySQL 表用于存储经验值
更多功能即将推出!(如果你有想要的功能,请告诉我)

[创建]
权限节点:expbank.create
放置一个告示牌并在第一行输入:[EXP](可配置)
- 此时告示牌即创建完成
[用法]
权限节点:expbank.use
存入 1 级经验:左键点击
存入全部经验:Shift + 左键点击
取出 1 级经验:右键点击
取出全部经验:Shift + 右键点击
以经验瓶形式取出:右键点击玻璃瓶
- ^需要权限节点 expbank.use.bottle
[权限]
expbank.create - 用于创建告示牌
expbank.use - 用于使用告示牌
expbank.use.bottle - 用于以瓶子形式取出经验值
[配置]
语言:更改所使用的语言文件
| 设置项 | 描述 | 默认值 |
| language | 用于消息显示的 yml 文件 | english |
文本:更改告示牌的外观
| 设置项 | 描述 | 默认值 |
| version | 插件版本 | 特定版本 |
| text.1 | 经验银行告示牌第 1 行的外观 | ---EXP--- |
| text.2 | 经验银行告示牌第 2 行的外观 | {player} |
| text.3 | 经验银行告示牌第 3 行的外观 | {expbank} |
| text.4 | 经验银行告示牌第 4 行的外观 | ---===--- |
| text.create | 在告示牌上输入以创建经验银行的文本 | [EXP] |
占位符:
以下占位符可用于告示牌的各行中
- {player} - 玩家名称
- {expbank} - 存储的经验值
- {lvlbank} - 以等级表示的存储经验值
- {lvlbank2} - 如果取出将获得的等级数
- {exp} - 玩家当前的经验值
- {lvl} - 玩家的等级
存储:设置可存储经验值的上限
~ 存储设置用于为不同用户设定经验银行存储上限。
| 设置项 | 描述 | 默认值 |
| storage.default | 默认上限(无关联权限) | 825 |
要添加新的上限,只需在 storage 下创建一个新的键。例如 "donator"
拥有权限节点 expbank.limit.donator 的玩家将以此作为其新的上限
- 具有最高上限的权限优先
MySQL:使用 MySQL 存储玩家的经验值
| 设置项 | 描述 | 默认值 |
| mysql.connection.host | MySQL 数据库的主机地址 | localhost |
| mysql.connection.port | 连接 MySQL 使用的端口 | 3306 |
| mysql.connection.username | 你的 MySQL 用户名 | root |
| mysql.connection.password | 你的 MySQL 密码 | |
| mysql.connection.database | 要使用的数据库名称 | mysql |
| mysql.connection.table | 要使用的 MySQL 表名称 | expbank |
| mysql.enabled | 是否启用 MySQL | false |
占位符
[独立类]
如果您在创建具有类似机制的独立插件时需要帮助,请私信我。
或者您可以使用我的 InSignsPlus API
待办事项
- Individual Messages 功能
- 添加一个用于提取/存入经验的命令(如果您不喜欢使用告示牌)
- 添加一个与其他玩家交易经验的命令
- 支持多世界?
- 添加一个命令以查看每个等级包含多少经验的表格。
Go to any EXP bank sign, see your own stats, and deposit or withdraw EXP. Just one EXP bank can manage the EXP of the whole server.
[Experience Bank II v0.1.0]
This plugin was created at the request of Stormbow (Check him out :) )
It uses a similar mechanic to my other plugin: Individual Signs Plus
- You can walk up to any EXP Bank sign and see your OWN stats!
- There is no limit to how many people can look at and use a single sign
- You can have as many signs as you would like
- Sign locations are NEVER stored in any database
- Completely configurable sign text (6 placeholders to choose from)
- 100% Ready and compatible with UUIDs in 1.8
- Optional MySQL table for stored EXP
More features coming soon! (tell me if you want something adding)

[Creation]
Permission node: expbank.create
Place a sign and type: [EXP] on the first line (configurable)
- The sign should now be created
[Usage]
Permission node: expbank.use
To deposit 1lvl: LEFT CLICK
To deposit everything: SHIFT + LEFT CLICK
To withdraw 1lvl: RIGHT CLICK
To withdraw everything: SHIFT + RIGHT CLICK
To withdraw as EXP_BOTTLE: RIGHT CLICK GLASS BOTTLE/S
- ^requires the permission node expbank.use.bottle
[Permissions]
expbank.create - to create the sign
expbank.use - to use the sign
expbank.use.bottle - used to withdraw EXP as a bottle
[Configuration]
LANGUAGE: change the language file to use
| Setting | Description | Default Value |
| language | The yml file to use for the messages | english |
TEXT: change the appearance of the signs
| Setting | Description | Default Value |
| version | The plugin version | version specific |
| text.1 | The appearance of line 1 of an EXP BANK | ---EXP--- |
| text.2 | The appearance of line 2 of an EXP BANK | {player} |
| text.3 | The appearance of line 3 of an EXP BANK | {expbank} |
| text.4 | The appearance of line 4 of an EXP BANK | ---===--- |
| text.create | The text to enter on a sign to create an EXP BANK | [EXP] |
Placeholders:
The following placeholders can be used in the lines of the sign
- {player} - the player's name
- {expbank} - the stored exp
- {lvlbank} - the stored exp in levels
- {lvlbank2} - no. of levels you will gain if you withdraw
- {exp} - the player's current exp
- {lvl} - the player's exp level
STORAGE: set limits on how much EXP can be stored
~ Storage is used to set exp bank storage limits for different users.
| Setting | Description | Default Value |
| storage.default | The default limit (no permission associated) | 825 |
To add a new limit, simply create a new key under storage. e.g. "donator"
A player with the permission node expbank.limit.donator will then have this as their new limit
- The permission with the highest limit has priority
MYSQL: use MySQL to store a player's exp
| Setting | Description | Default Value |
| mysql.connection.host | The host for the MySQL database | localhost |
| mysql.connection.port | The port to use to connect to MySQL | 3306 |
| mysql.connection.username | Your MySQL username | root |
| mysql.connection.password | Your MySQL password | |
| mysql.connection.database | The name of the database to use | mysql |
| mysql.connection.table | The name of the MySQL table to use | expbank |
| mysql.enabled | Whether MySQL should be enabled or not | false |
Placeholders
[Standalone Class]
Please PM me if you need some help in creating a standalone plugin with similar mechanics.
Alternatively you could use my InSignsPlus API
TODO
- Individual Messages features
- Add a command to withdraw/deposit exp (if you dislike the signs)
- Add a command to trade exp with other players
- Multiworld support?
- Add a command to see a table of how much EXP is in each level.
评论 0
登录后参与评分
还没有评论,来抢沙发吧