PrisonRankup
专为常年热门的监狱服务器设计,评分最高且最实用的升级插件终于来了。该插件在配置文件中内置了独特的数据库,用于存储每个玩家的等级,以防止丢失等级、系统漏洞或错误,并允许多个组与流行的权限插件(包括 PermissionsEX 和 GroupManager)兼容。获取玩家信息从未如此简单,只需输入“/rankup get (name)”即可检索玩家的显示名称、等级和当前余额。要使余额功能以及插件本身正常工作,必须安装 Vault。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
命令:
/rankup - 将发送者升级到下一个可用等级 (prisonrankup.rankup)
/rankup set (player) (rank) - 将指定玩家设置为指定等级 (prisonrankup.set)
/rankup stats (rank) - 查看指定等级的统计数据 (prisonrankup.stats)
/rankup create (rank) (price) - 在游戏中创建等级 (prisonrankup.stats)
/rankup get (player) - 获取玩家资料 (prisonrankup.get)
/rankup reload - 重新加载 config.yml (prisonrankup.reload)
/rankup update - 更新 PrisonRankup (prisonrankup.update)
/ranks - 显示可用等级列表 (prisonrankup.ranks)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
默认配置文件:
# 欢迎配置 PrisonRankup,我将在此引导您完成此配置设置
# 首先让我介绍一下自己,我是 Mazen。我自认为是配置插件和 YAML 配置的专家,也是一名高级 Java 开发者
# 我想让你做的第一件事是设置插件使用的前缀(消息前面的内容)。请保留引号以避免错误。
Prefix: '&a[&bPrison&6-&bRankup&a]'
# 不要动这个!
version: 3.0
# 接下来我想让你设置当有人升级时显示的消息。这里也请保留引号。
# %player% 将被替换为玩家的名称,%rank% 将被替换为他们升级到的等级。
Rankup BC Message: '&3%player%&6hasrankedupto&3%rank%'
# 现在,这是此插件最重要的部分——升级阶梯
groups:
# 以下是格式示例:
# 等级名称:价格
# 请勿删除上面的 # 符号!
- A:30
- B:100
- C:300
# 在这里,我会要求你将阶梯中的第一个等级放入此示例中,即 A
First Rank: 'A'
# 以及最后一个等级,以确保我们可以通知玩家他们已处于阶梯顶端
Last Rank: 'C'
# 如果他是最高等级,我们将向玩家发送此消息。
Highest Rank MSG: '&6Youarealreadythehighestrank!'
# 下一个选项是如果你希望为你的升级系统使用时间要求,如果是则设为 true。默认为 false;
Timed Requirement: false
# 现在,如果你将其设置为 true,你将需要设置一个用于满足等级要求的时间段
Time Interval: 0.0
# 在这里,你需要写明时间基于什么单位:秒、分钟还是小时。拼写很重要!
Time type: Seconds
# 如果需要,我添加了一个选项,你可以选择是否让间隔添加到每个升级序列中
Interval on all ranks: false
# 现在你快完成了!还有一部分,如果你是从其他 Rankup 插件迁移过来的,请将此项设置为 true。如果不是,请设置为 false。
# 它的作用是检查玩家是否具有列在 groups 中的等级(每分钟一次),如果是,则使用该等级创建档案。
Transfer ranks to profile: false
# 如果你不想使用更新器,请将下一项设置为 false
update: true
# 如果你希望启用调试模式,请将其设置为 true
debug: false
# 这是当玩家执行 /ranks 时显示的等级格式
#变量为: %price%, %rank%
ranks-format: '&5[&3%rank%&5]&6:%price%'
# 这是当玩家金钱不足无法升级时收到的消息
#变量与上面显示的相同
not-enough-money: '&6Youneed&2$%price%&6torankupto&2%rank%'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
切换
正在从其他 Rankup 插件切换过来吗?很简单!在 config.yml 中将“将等级转移到角色档案(Transfer ranks to profile)”选项设置为“true”即可!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.8 兼容性
版本 2.0 已实现与 UUID 的 1.8 兼容性。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
使用告示牌集成
你可以创建适用于 PrisonRankup 的告示牌,操作方式如下(你需要拥有 prisonrankup.sign 权限):

放置后,你将看到类似这样的效果:

恭喜!现在你拥有了一个可用于提升等级的告示牌!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
插件更新器
从版本 1.3 开始,我已在插件中集成了更新功能,只需执行 /rankup update 即可更新插件。你可以在 config.yml 中将 updater 设置为 false 来禁用此功能。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PrisonRankup 连接至 Mojang 服务器
自 UUID 更新以来,PrisonRankup 会连接至 'sessionserver.mojang.org' 和 'api.mojang.com' 以获取 UUID 和玩家名称。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
发现 Bug?请报告!
遇到了 Bug?或者希望为插件添加新功能?点击 这里 进行反馈!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
源代码(仅供学习用途)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JavaDocs
PrisonRankup 现在为 v3.0+ 版本提供了 JavaDocs!你可以在此处查看 这里!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PrisonRankup
The highest-rated and most practical rankup plugin designed specifically for the ever-popular Prison server is finally here. This plugin features a unique database built into the config to house each individual player’s rank to prevent losing ranks, glitching out of the system, and allowing multiple groups to be compatible with popular permissions plugins, including PermissionsEX and GroupManager. Accessing player’s information has never been easier, as one can simply type “/rankup get (name)” to retrieve the player’s display name, rank, and current balance. In order for the balance feature to work, as well as the plugin itself, Vault is required.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Commands:
/rankup - Ranks the sender up to the next available rank (prisonrankup.rankup)
/rankup set (player) (rank) - Sets the given player to the given rank (prisonrankup.set)
/rankup stats (rank) - Receive statistics of a rank given (prisonrankup.stats)
/rankup create (rank) (price) - Create a rank in-game (prisonrankup.stats)
/rankup get (player) - Retrieve a player profile (prisonrankup.get)
/rankup reload - Reloads the config.yml (prisonrankup.reload)
/rankup update - Update PrisonRankup (prisonrankup.update)
/ranks - Shows you available ranks (prisonrankup.ranks)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default Configuration File:
# Welcome to configuring PrisonRankup, I will be here to guide you through this config setup
# First let me introduce myself, I am Mazen. I consider myself an expert in configuring Plugins and YAML configs and an advanced Java developer
# First thing I want you to do is to set the prefix (What comes before the message) for the plugin to use. Keep the speech marks please to avoid errors.
Prefix: '&a[&bPrison&6-&bRankup&a]'
#Do not touch this!
version: 3.0
# Next thing I want you to do is set the message you want it to be when somebody ranks up. Keep the speech marks here as well.
# The %player% will be replaced with the players name, and the %rank% will be replaced with the rank they ranked up to.
Rankup BC Message: '&3%player%&6hasrankedupto&3%rank%'
# Now, the most important part of this plugin is the rankup ladder
groups:
#Heres an example of the format of how it should be:
# rank name:price
#DO NOT REMOVE THE # FROM THE ABOVE!
- A:30
- B:100
- C:300
#Here, I will be asking you to put the first rank on the ladder in this example A
First Rank: 'A'
# As well as the last rank to assure that we can message the player that he is at the end of the ladder
Last Rank: 'C'
# This message is the message we will send to the player if he is the highest rank.
Highest Rank MSG: '&6Youarealreadythehighestrank!'
# This next one is if you want to use a timed requirement for your rankup system, set it to true if yes. Default is false;
Timed Requirement: false
# Now we're if you set it to true you will have to set a certain time that you want to be done for the rank requirement
Time Interval: 0.0
# Here you will write what the time is based on, seconds, minutes or hours. Spelling does matter!
Time type: Seconds
# If you want, I added an option where you can choose if you want to make it so that the interval is added to every Rankup Sequence
Interval on all ranks: false
# Now you're almost there! Theres just one last part, If you're switching from Rankup and/or majority of Rankup plugins set this to true. If not, set it to false.
# What this does is check if the player has a rank that is listed in groups (Every minute) and if so, makes a profile with that rank.
Transfer ranks to profile: false
# Set the next item to false if you do not want to use the updater
update: true
# Set this to true if you wish to enable debug mode
debug: false
# This is the format of the ranks which will appear when a player does /ranks
#Variables are: %price%, %rank%
ranks-format: '&5[&3%rank%&5]&6:%price%'
# Here, is the message the player will recieve when he doesn't have enough money to rankup
#Varaibles are the same as the ones shown above
not-enough-money: '&6Youneed&2$%price%&6torankupto&2%rank%'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Switching
Are you switching from another Rankup plugin? Simple! Set the “Transfer ranks to profile” option to “true” in the config.yml!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.8 Compatibility
1.8 compatibilities with UUIDs have been implemented in version 2.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using the Sign Integration
You can make signs that work for PrisonRankup like this (You require the permission prisonrankup.sign):

Then, once you place it you will get something like this:

And congratulations! Now you have a sign that be used to Rankup!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Plugin Updater
As of Version 1.3 I have integrated an updater to the plugin, just do /rankup update to Update the plugin. You may disable this feature by setting updater to false in the config.yml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PrisonRankup Connects to Mojangs Servers
As of the UUID Update, PrisonRankup connects to 'sessionserver.mojang.org' as well as 'api.mojang.com' to fetch UUIDs and names.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found a bug? Report it!
Have a bug you ran into? You want something added to the plugin? Click here!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Source (for educational purposes only)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JavaDocs
PrisonRankup now has JavaDocs for v3.0+! You can check it out here!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
评论 0
登录后参与评分
还没有评论,来抢沙发吧