EZPrestige 轻松声望

作者:clip 发布时间:2014年11月11日 原生版本:未知 测试支持:1.8,1.9,1.10,1.11,1.12,1.13,1.14,1.15

让玩家/威望以EZ的方式

点此下载

插件详细介绍

🎉 EZPrestige 插件简介

EZPrestige 是一款为 Minecraft 服务器打造的声望系统插件,尤其适用于 Rankup 类型的服务器。它允许玩家在达到特定等级后使用 /prestige 命令进行转生,并以声望玩家的身份重新开始。你可以创建任意数量的声望等级。该插件与 EzRanksPro 兼容,并且应该与其他 /rankup 插件兼容。插件无需数据库,只需权限插件即可跟踪玩家的声望等级。

✨ 指令

📜 玩家指令

  • /prestige - 在 config.yml 中设置的权限组中使用,用于转生。
  • /prestiges - 查看服务器的声望列表,可在 config.yml 中自定义。

⚙️ 管理员指令

  • /prestige reload - 重载 EZPrestige 插件。
    • 权限:ezprestige.admin
  • /prestige version - 查看 EZPrestige 插件版本。
    • 权限:ezprestige.admin

🛠️ 配置

首次加载 EZPrestige 时,它会创建两个文件。编辑这些文件以满足你的需求,并使用 /prestige reload 命令来更新你所做的任何更改。chat_integration 设置不会在 /reload 时更新,只能在启动时启用/禁用!

config.yml

prestiges.yml

💬 聊天整合

EZPrestige 具有 chat_integration 选项,允许你在聊天插件的聊天格式字符串中添加 {prestige},以显示你在 prestiges.yml 中定义的玩家声望标签!(目前已使用 Essentials 测试)。

以下是如何设置它的示例:

# essentials chat config section
format: '&7[{GROUP}]&f {DISPLAYNAME}&7:&f {MESSAGE}'

💻 开发者 API

EZPrestige 提供了开发者可以用来获取与玩家声望相关信息的方法。

EZPrestige 中的 Prestige 对象包含与声望相关的所有数据:

  • displayname
  • displaytag
  • prestige number
  • commands to be executed when players /prestige
  • cost
  • etc

你可以通过调用以下方法来获取与特定玩家相关的 Prestige 对象:

/**
 * This method will return a players current {@link Prestige}
 * if they have one
 *
 * @param p Player to get Prestige object for
 * @return null if player does not have a prestige
 */
PrestigeManager.getCurrentPrestige(Player);

/**
 * This method will return a players next {@link Prestige}
 * if they have one (will return null if a player is the last prestige or
 * if no prestiges have been loaded)
 *
 * @param p Player to get next Prestige object for
 * @return null if player does not have a next prestige
 */
PrestigeManager.getNextPrestige(Player);

/**
 * check if a player is the last prestige
 * @param p Player to check
 * @return true if player is the last prestige
 */
PrestigeManager.isLastPrestige(Player);

⚙️ config.yml 示例

# +-----------------------------------------------------------------------------------+
# | EZPrestige Developed By imBlazer                                                  |
# | If you require support with this plugin, please visit the spigot page             |
# | and send me a PM.                                                                 |
# +-----------------------------------------------------------------------------------+
# | This plugin allows you to create infinite prestiges, and is compatible with       |
# | any ranking plugin! (tested with EzRanksPro)                                      |
# |                                                                                   |
# | if you use the chat_integration, you MUST use a permissions plugin that supports |
# | groups!                                                                           |
# +-----------------------------------------------------------------------------------+
settings:
  # should the plugin attempt to hook into a chat plugin for {prestige} tag usage?
  # this feature requires the chat plugin to support permission groups (tested with essentials)
  chat_integration: false

  # permission node required to use /prestige
  prestige_permission: 'default'

  # the message the player receives when they prestige
  prestige_message: '&aYou have prestiged to &e{prestige_name}&a!'

  # the message the player receives when they are not the correct prestige to prestige.
  incorrect_prestige: '&cYou must be prestige &e{prestige_name} &cor higher to prestige!'

  # the message the player receives when they are the final prestige
  final_prestige: '&cYou are the final prestige!'

  # should the /prestige command be disabled?
  disable_prestige_command: false

  # the message sent to a player if the /prestige command is disabled
  prestige_command_disabled: '&cThis command is currently disabled!'

  # Should prestige names be displayed on startup?
  display_prestige_on_startup: true

  # what message should be sent on startup?
  startup_message: '&e&lEZPrestige &8&lv&e&l{version} &7- &aLoaded &e{prestige_amount} &aPrestiges!'

  # the format of the prestige list
  prestige_list_format: '&e{displayname} &7- &f{commands}'

  # the title of the prestiges GUI
  prestige_gui_title: '&ePrestiges'

  # should the prestige GUI be enabled?
  enable_prestige_gui: false

✨ prestiges.yml 示例

# +-----------------------------------------------------------------------------------+
# | EZPrestige Developed By imBlazer                                                  |
# | If you require support with this plugin, please visit the spigot page             |
# | and send me a PM.                                                                 |
# +-----------------------------------------------------------------------------------+
# | This plugin allows you to create infinite prestiges, and is compatible with       |
# | any ranking plugin! (tested with EzRanksPro)                                      |
# |                                                                                   |
# | if you use the chat_integration, you MUST use a permissions plugin that supports |
# | groups!                                                                           |
# +-----------------------------------------------------------------------------------+
prestiges:
  # the prestige names
  # this is the permission group the player needs to be in to /prestige
  # make sure you add all the prestiges in order.

  # default example
  default:
    displayname: '&aDefault'
    displaytag: '&a[Default]'
    commands:
      - 'eco give {player} 1000'
      - 'say {player} has prestiged to default!'
    cost: 0
  # prestige example
  prestige_1:
    displayname: '&ePrestige I'
    displaytag: '&e[I]'
    commands:
      - 'eco give {player} 5000'
      - 'say {player} has prestiged to prestige 1!'
    cost: 1000
  # prestige example
  prestige_2:
    displayname: '&6Prestige II'
    displaytag: '&6[II]'
    commands:
      - 'eco give {player} 10000'
      - 'say {player} has prestiged to prestige 2!'
    cost: 5000
  # final prestige example
  prestige_3:
    displayname: '&cPrestige III'
    displaytag: '&c[III]'
    commands:
      - 'eco give {player} 50000'
      - 'say {player} has prestiged to prestige 3!'
    cost: 10000