概览
版本:0.5.0 | craftbukkit:#1.3.1 | 源码 | 开发者 API
功能特性
- 让玩家使用经验值购买物品!既然人们已经可以用经验值附魔,为什么不让他们也能在商店里买东西呢!
- 支持 Vault!
- 兼容 Minecraft 1.3.1!
- 配置文件简单易懂!
- 无需权限系统(不过如果你需要的话,也提供了相应的权限节点)!
描述
EconXP 是一个经济系统,它使用玩家的 experience points(从怪物身上收集到的绿色光球)作为货币。随着附魔开始消耗经验值,基于交易经验值概念的经济体系将变得有趣起来,尤其是因为经验值是自然获取且已被使用的,因此赋予了它们固有的价值。
EconXP 现已支持 Vault,因此任何使用 Vault 的商店或货币相关插件都可以将 EconXP 作为其货币类型!我稍后还将添加对 Register 的支持,使 EconXP 能够与许多现有的商店和经济相关插件配合使用。
Minecraft 等级与经验值
Minecraft 的升级系统有点奇怪,可能会让一些人感到困惑。这里简要解释一下它是如何工作的。
玩家通过击杀怪物获得经验值,经验值会以地面上的绿色光球形式出现。获得经验值后,玩家会提升等级。从 MC 1.3.1 开始,等级的计算方式发生了变化。我太懒了,懒得写出实际的公式,所以你得去查看 Minecraft Wiki:MinecraftWiki.net
开发者 API
请在此处查看 API 说明:开发者 API
配置文件
启动服务器后,可以在 EconXP 文件夹(位于 plugins 文件夹内)找到配置文件。
来自配置文件的引用:death-drop-percent: 100 - [0 到 100] 默认情况下,所有玩家死亡时会掉落全部经验值(而不是仅掉落旧总量的 60%)。此处请勿使用小数(或百分号)。如果你不希望玩家在死亡时损失经验值,请将其设置为 0(零)。
命令
默认情况下,命令仅限 OP 使用,但 balance(仅限自身)命令除外。因此,除非被赋予使用该命令的权限,否则玩家不应能够转移经验值。所有命令都与其对应的权限一一对应(见下方的权限部分)。
所有命令都可以使用缩写形式。例如,你可以输入 /exp bal 而不是 /exp balance。但是,玩家名称和数量不能缩写(这是显而易见的)。不过,玩家名称的大小写不敏感。
所有 <amount> 和 <factor> 值必须为正数(大于或等于零)。所有 <amount> 值必须是整数。
来自命令列表的引用:/exp 或 /econxp - 基础命令(即 /exp add Agnate 5)。可以使用任一基础命令。
/exp add <player> <amount> - 为玩家增加经验值。
/exp subtract <player> <amount> - 从玩家那里扣除经验值。
/exp multiply <player> <factor> - 将玩家的经验值乘以指定倍数。
/exp divide <player> <factor> - 将玩家的经验值除以指定倍数。
/exp set <player> <amount> - 设置玩家的经验值。
/exp clear <player> - 清除玩家的所有经验值。
/exp balance - 查看你当前的经验值。
/exp balance <player> - 查看某玩家当前的经验值。
/exp give <player> <amount> - 将你的一部分经验值给予某玩家。
/exp transfer <giver> <amount> <receiver> - 从赠送者转移到接收者。
权限
使用任何命令都需要相应的权限。玩家可以无需任何权限即可获得经验值。
来自权限节点的引用:econxp.* - 允许所有命令。
econxp.add - 允许玩家使用 add 命令。
econxp.subtract - 允许玩家使用 subtract 命令。
econxp.multiply - 允许玩家使用 multiply 命令。
econxp.divide - 允许玩家使用 divide 命令。
econxp.set - 允许玩家使用 set 命令。
econxp.clear - 允许玩家使用 clear 命令。
econxp.balance - 允许玩家使用 balance 来检查玩家的余额。
econxp.give - 允许玩家将自身的经验值给予其他玩家。
econxp.transfer - 允许玩家使用 transfer 命令。
待办事项
我目前的待办事项列表:
更新日志
查看 更新日志。
致谢
- 感谢 Flamers 帮忙提供横幅截图!
- 感谢 Nijijokun 发布他的 iConomy 源码(从而帮助我理解 JNBT)!
- 感谢 garbagemule 在此过程中提供的灵感和代码帮助!
Overview
version: 0.5.0 | craftbukkit: #1.3.1 | Source | Developer API
Features
- Let players use their experience points to buy things! Since people can already buy Enchantments with experience points, why not buy be able to buy from shops as well!
- Supported by Vault!
- Works with Minecraft 1.3.1!
- Simple config file!
- No permission system needed (though there are permissions available if you want them)!
Description
EconXP is an economy system that users the player's experience points (the green orbs collected from monsters) as the currency. With the introduction of Enchanting costing experience, it will be interesting to see economies based around the concept of trading experience points, especially since they are already naturally collected and used, thus giving them an inherent value.
EconXP is now supported by Vault, so any shop or currency-related plugin that uses Vault can have EconXP as its currency type! I will also be adding Register support later, allowing EconXP to be used with many existing shop and economy-related plugins.
Minecraft Levels and Experience
Minecraft's levelling system is a bit strange and can be confusing to some people. Here's a quick explanation of how it works.
Players collect experience by slaying monsters, and the experience appears as green orbs on the ground. Upon receiving experience, players gain levels. As of MC 1.3.1, the calculations have changed for levels. I'm too lazy to write out the actual equations, though, so you'll have to check out the Minecraft wiki: MinecraftWiki.net
Developer API
Check out the API description here: Developer API
Configuration File
Configuration file can be found after starting the server, under the EconXP folder (inside the plugins folder).
Quote from the Config file:death-drop-percent: 100 - [0 to 100] By default, all players drop all of their experience (rather than only 60% of the old total). Do NOT use decimals here (or a percent sign). Set this to 0 (zero) if you do not want players to lose their experience points when they die.
Commands
Commands are OP-only by default, with the exception of the balance (self-only) command. Therefore, players should not be able to transfer experience unless given permission to use the command. All commands map 1-to-1 with the respective permission (see the Permission section below).
All commands can use abbreviated forms. For example, you may type /exp bal instead of /exp balance. Player names and amounts can not be abbreviated, however (for obvious reasons). Capitalization of player names does not matter, though.
All <amount> and <factor> values must be positive (greater than or equal to zero). All <amount> values must be whole numbers.
Quote from the Command list:/exp OR /econxp - The base commands (ie. /exp add Agnate 5 ). Either base can be used.
/exp add <player> <amount> - Add experience to the player.
/exp subtract <player> <amount> - Subtract experience from the player.
/exp multiply <player> <factor> - Multiply experience of a player by the factor.
/exp divide <player> <factor> - Divide experience of a player by the factor.
/exp set <player> <amount> - Set the experience of a player.
/exp clear <player> - Clear ALL of the experience of a player.
/exp balance - See your current experience points.
/exp balance <player> - See the current experience of a player.
/exp give <player> <amount> - Give some of your experience to a player.
/exp transfer <giver> <amount> <receiver> - Transfer from Giver to Receiver.
Permissions
Permissions are required to use any of the commands. Players can receive experience without having any permissions.
Quote from the Permission nodes:econxp.* - Allows all commands.
econxp.add - Allows player to use the add command.
econxp.subtract - Allows player to use the subtract command.
econxp.multiply - Allows player to use the multiply command.
econxp.divide - Allows player to use the divide command.
econxp.set - Allows player to use the set command.
econxp.clear - Allows player to use the clear command.
econxp.balance - Allows player to use balance to check players' balances.
econxp.give - Allows player to give their own experience to a player.
econxp.transfer - Allows player to use the transfer command.
To Do List
My current to-do list:
Changelog
View the Change Log.
Credits
- Flamers for helping with the banner's screenshot!
- Nijijokun for posting his iConomy source (and thus helping me figure out JNBT)!
- garbagemule for inspiration and code help along the way!
评论 0
登录后参与评分
还没有评论,来抢沙发吧