通过告示牌用经验值(XP)购买物品。简单!
简介
“这一切都关乎特殊的告示牌!”
我们许多人喜欢经验值系统。其中一些人也希望能有另一种方式获得那些难以找到或制作的物品,而不会让游戏变得廉价。将这两个想法结合起来,就得到了 ItemsForXP!它受到了像 SignShops 这类插件带来的即时满足感的启发。ItemsForXP 允许你通过简单的特定布局设置告示牌,并用你辛苦获得的经验值来购买急需的材料和物品。通常需要权限才能放置和使用这些特殊告示牌。但是,你可以在配置文件中禁用权限。
额外功能 (Xtra Features)
现在,你可以借助新的额外功能扩展包获得更多乐趣。玩家可以将他们的物品卖给告示牌并换回经验值。在后续版本中,玩家将能够设置自己的告示牌并向彼此出售物品。你将拥有一个完全基于经验值的经济系统!关于此扩展包的所有信息(配置、权限等)都在本页面的相应章节下,标题为“额外功能”的子节中。若想更详细地了解什么是额外功能扩展包以及为什么我们要提供它,请阅读“什么是额外功能?”页面。
功能
- 你所要做的只是放置一个告示牌即可开始!
- 支持通过 SuperPerms(内置于 Bukkit)或 PEX 进行权限控制。(可在 config.yml 中禁用)
- 便捷的
/checkxp 和 /level 命令。
- 每当用户尝试对特殊告示牌进行操作时,控制台都会记录日志(包含坐标)。
- 游戏内和控制台的消息完全可自定义(可翻译)!
额外功能 (Xtra Features)
- “当铺”告示牌,允许玩家典当他们的物品以换取经验值。
命令
/checkxp - 确切了解你拥有多少经验值
/level - 查看你的实际等级。在某些情况下,Minecraft 不会更新 HUD 中的数字。
/levelup - 仅调试模式。(见下方配置。)给予你升级所需的经验值。
额外功能 (Xtra Features)
无。
放置特殊告示牌
以下是一个告示牌的示例:
引用:[ItemsForXP] - 不区分大小写(即 [itemsforxp] 同样有效)。
42x1 - 物品 ID 乘以 数量(现在允许使用空格!)
18 - 价格(经验值点数)你也可以在这一行放置 xp。
18xp for iron - 你可以在这一行写上任意内容
- 你也可以使用
[Buy With XP](或者你配置的任何内容)代替 [ItemsForXP]。
- 第二行是字母 x,但你可以改用 * 。你可以在此处找到物品 ID。你可以通过类似
35:15x5(五块黑羊毛)的方式来使用数据值/伤害值(例如用于彩色羊毛)。
- 当你尝试使用无效的告示牌时,游戏会提示你。
- 我通常喜欢在告示牌下方放置该物品(在本例中为铁块),以便快速直观地参考。当然,这不是必需的。
额外功能 (Xtra Features)
布局完全相同,除了第一行必须是 [Sell for XP]。这也可以在扩展包的配置文件中修改。
配置
使用此插件无需任何配置。然而,你可以自定义插件的运行方式。如果插件找不到配置文件(例如首次运行时),会自动生成一个新的 config.yml。点击此处查看默认的 config.yml。如果你希望添加新的配置选项,只需在下面留言告诉我。
文件中对每个选项都有解释,但这里有一个概述:
调试 (Debug)
这将在控制台中输出各种有用的信息。这有助于我确定插件为何可能无法正常工作。只需设置 debug: true,保存文件,然后通过 /reload 命令重新加载插件。然后观察它输出的所有内容。
手持物品 (Use Item)
玩家在敲击告示牌时必须手持特定物品。这样可以防止玩家误购物品。默认情况下,他们必须手持纸张,但你可以在这里更改。只需将此选项设置为你想要的材料 ID(不支持物品数据值)。你可以在此处找到ID 编号。
告示牌标题 (Sign Title)
signTitle 选项允许你指定不同的标签放在告示牌的第 1 行。你可以移除括号(“[”和“]”),将其替换为破折号,或将文本从 [Buy With XP] 更改为 [Crap Shack]。无论你想做什么。如果你更改了此项,[Buy With XP] 将不可用,直到你改回来。[ItemsForXP] 已内置于插件中,因此它将始终可用。
权限 (Permissions)
通常,此插件需要权限。现在你可以让它在不依赖权限的情况下运行……以一种礼貌的方式。你可以分别为放置告示牌、从其购买或两者同时禁用权限。你会发现这些选项缩进在 permissions: 之下。
Messages
这一部分包含许多配置选项。我不会在此一一解释它们。这些选项允许你更改插件显示的文本。共有三个子部分:Global(全局)、Console(控制台)和 Game(游戏)。Console 选项是会在控制台中显示的文本;Game 选项是会在游戏内聊天栏中显示的文本;Global 选项则同时用于控制台和游戏。要找到你要替换的文本对应的选项,只需搜索即可(用眼睛看或按 CTRL+F 查找)。config.yml 文件的注释中提供了描述和默认值,非常有帮助。
Xtra Features
在此查看完整配置.
Sign Title (Pawn)
与上面的“sign title”类似,这是 pawn 告示牌的第一行。这类告示牌允许用户出售物品并换取经验值。
Messages
大多数消息来自主插件的配置文件,但有一些消息是该附加组件独有的。这些消息可以在这里进行翻译/修改。
Permissions
ifx.sign.place - 可以放置特殊告示牌的用户
ifx.sign.use - 可以从特殊告示牌购买的用户
Xtra Features
ifx.place.infinite.pawn - 可以放置 “pawn” 告示牌的用户(允许用户出售物品并获取经验值的告示牌)
ifx.use.infinite.pawn - 可以将物品卖给告示牌的用户
Version Stuff:
Plans
- 添加命令作为专门布置告示牌的替代方案 - (配置选项?)
- 想出一种出售实际物品的方法(而不是凭空无限销售)[Xtra Features]
- 研究支持经济类插件的影响 [Xtra Features]
- 可能添加自定义日志记录的配置选项?请告诉我!
Latest Release
v 3.0 - Xtra Features
- 重构代码以容纳新功能
- 全新的 “Xtra Features” 附加组件!没错,这是一个插件的附加组件(适用于 Minecraft 服务器模组)。:D
- 添加了将物品卖给告示牌以换取经验值的功能 [Xtra Features]
喜欢我的作品吗?点击链接,请我喝杯饮料吧! :D
Buy items with your XP (experience) via signs. Simple!
Summary
"It's all about special signs!"
Many of us love the experience point system. Some of us would also love to have another way to gain some of those hard to find/craft items without cheapening the gameplay. Put these two ideas together and you get ItemsForXP! It's inspired by the instant gratification of plugins like SignShops. ItemsForXP allows you to setup signs with a simple, specific layout and to spend your hard earned XP on much needed materials and items. Permissions is normally required to place one of these special signs and also to use the sign. However, you can disable Permissions in the config file.
Xtra Features
Now, you can have even more goodness with the new Xtra Features add-on. Players can sell their items to signs and get XP in return. In a later version, players will be able to set up their own signs and sell items to each other. You'll have a full economy based on experience points! All the information you need about this add-on (configuration, permissions, etc.) is under the appropriate sections on this page in sub-sections titled "Xtra Features." For a longer explanation of what the Xtra Features add-on is and why we have one, read the "What is Xtra Features?" page.
Features
- All you have to do is place a sign to get started!
- Supports permissions via SuperPerms (built into bukkit) or PEX. (can be disabled in config.yml)
- Handy
/checkxp and /level commands.
- Console logs (with coordinates) whenever a user tries to do something with a special sign.
- Fully customizable (translatable) messages in the game and console!
Xtra Features
- "Pawn" signs that allow players to pawn off their items and get xp.
Commands
/checkxp - Find out exactly how much XP you have
/level - See what your level really is. There are specific occasions when minecraft doesn't update the number in the HUD.
/levelup - Debug mode only. (See Configuration below.) Gives you the xp needed to level up.
Xtra Features
None.
Placing Special Signs
Here is an example sign:
Quote:[ItemsForXP] - Case does not matter (ie. [itemsforxp] works just fine).
42x1 - Item ID times Quantity (Spaces are allowed now!)
18 - Cost (Experience points) You may place xp on this line as well.
18xp for iron - You can put whatever you want on this line
- You may also use
[Buy With XP] (or what ever you configured) instead of [ItemsForXP].
- That is an x on the second line, but you may use an * instead. You can find Item IDs here. You may use data/damage (like for colored wool) by doing something like
35:15x5 (five black wool).
- The game will let you know if a sign is invalid when you try to use it.
- I often like to place the item (a block of iron in this example) underneath the sign for a quick and easy visual reference. Of course, this is not required.
Xtra Features
The layout is the exactly same, except the top line must be [Sell for XP] instead. This can also be modified (in the add-on's config file).
Configuration
No configuration is necessary to use this plugin. However, you may customize the plugin's operation. A new config.yml is automatically generated if the plugin cannot find it (like when you run it for the first time). Click here to see the default config.yml. If you would like a new configuration option, just post below and tell me.
There are explanations in the file for each option, but here's an overview:
Debug
This will put all kinds of useful information in the console. This can help me determine why the plugin might not be working correctly for you. Just set debug: true, save the file, and reload your plugins via the /reload command. Then me everything it spits out.
Use Item
Players are required to hold a certain item when they punch a sign. This keeps the players from accidentally buying stuff. By default, they must be holding paper, but you can change that here. Just set this option to the ID of the material you want (item data is not supported). You can find ID numbers here.
Sign Title
The signTitle option lets you specify a different tag to put on Line 1 of your signs. You could remove the braces ("[" and "]"), replace them with dashes, or change the text from [Buy With XP] to [Crap Shack]. Whatever you want to do. If you change this, [Buy With XP] will be unavailable until you change it back. [ItemsForXP] is built into the plugin, so it will always be available.
Permissions
Normally, this plugin requires permissions. Now you can tell it shut up and deal without it …in a nice kind of way. You can disable permission for either placing signs, buying from them, or both. You will find these options indented under permissions:.
Messages
There are a lot of config options in this section. I will not explain all of them here. They allow you to change the text that the plugin displays. There are three subsections: Global, Console, and Game. Console options are text that appears in the console. Game options are text that appear in the chat in-game. Global options are used in both the console and the game. Finding the option for the text you want to replace simply requires some searching (with your eyes or CTRL+F). Descriptions and default values are provided in comments in the config.yml file. They are very helpful.
Xtra Features
View the full config here.
Sign Title (Pawn)
Similar to "sign title" above, this is the first line on pawn signs. These are signs that allow users to sell their items and get xp in return.
Messages
Most messages are pulled from the main plugin's config file, but there are some messages that are exclusive to the add-on. These messages can be translated/modified here.
Permissions
ifx.sign.place - Users who can place special signs
ifx.sign.use - Users who can buy from special signs
Xtra Features
ifx.place.infinite.pawn - Users who can place "pawn" signs (signs which allow users to sell their items and get xp)
ifx.use.infinite.pawn - Users who can sell their items to a sign
Version Stuff:
Plans
- Add commands as an alternative to laying out the sign specifically - (config option?)
- Come up with a way to sell actual items (instead of infinite sales out of thin air) [Xtra Features]
- Investigate the implications of supporting economy plugins [Xtra Features]
- Possibly add configuration options to customize logging? Let me know!
Latest Release
v 3.0 - Xtra Features
- Restructured code to make way for new features
- New "Xtra Features" add-on! That's right, an add-on for the plugin (for the server mod for minecraft). :D
- Added ability to sell items to signs in exchange for xp [Xtra Features]
- New config option for this
- A few new translatable messages too
Like my work? Click the link, buy me a drink! :D
评论 0
登录后参与评分
还没有评论,来抢沙发吧