玩家击杀奖励
Minecraft 1.8 的 0.4 版本
这是一个简单的插件,使用 Essentials 和 Vault,在玩家击杀其他玩家时给予奖励。
如果您使用该插件,请在评论中发布您的服务器 IP。
配置文件
启动带有该插件的服务器后,您可以在 KillRewards 文件夹下使用记事本等文本编辑器编辑 Config.yml。您可以按以下方式调整默认值(方括号 [] 中的内容是我的注释,不会显示在您的配置文件中。这些注释旨在帮助您进行设置):
[如果您没有执行某条命令的权限,将显示此消息。我使用了 &c 颜色代码表示红色。您可以在此处查找颜色代码列表:http:minecraft.gamepedia.com/Formatting_codes]
noPermission: '&c您没有权限!'
[当您死亡时,会向您发送此消息。同样,我使用了 &c 作为红色颜色代码。我还设置了此功能,允许您使用 <Killer> 获取击杀者的名字。例如,如果玩家 YoshiPi 击杀了玩家 YoshiPi2,YoshiPi2 将收到红色的消息“您被 YoshiPi 击杀”]
KilledMessage: '&c您被 <Killer> 击杀'
[KillerMessage 是击杀者在击杀某人后收到的消息。<Killed> 获取被击杀用户的名字,因此在上述情况下,消息将以金色显示“您已击杀 <Killed> 并获得”,随后以绿色(即 &a)显示“$10”]
[<money>、<moneyVIP> 和 <MoneyMVP> 分别获取普通玩家、拥有权限节点 - KillReward.VIP 的玩家以及拥有权限节点 - KillReward.MVP 的玩家所获得的金钱数量]
KillerMessage: '&6您已击杀 <Killed> 并获得 &a$<Money>'
VIPKillerMessage: '&6您已击杀 <Killed> 并获得 &a$<MoneyVIP>'
MVPKillerMessage: '&6您已击杀 <Killed> 并获得 &a$<MoneyMVP>'
[您可以忽略这些默认值,因为您可以通过 /SetMoneyReward、/SetMoneyRewardVIP 和 /SetMoneyRewardMVP 在游戏内设置金钱奖励]
MoneyRewarded: 10.0
MoneyRewardedVIP: 100.0
MoneyRewardedMVP: 1000.0
[在此处更改服务器名称为您的服务器名称,这样当您输入 /Stats 时,您的服务器名称将显示在顶部]
ServerName: '&a&lServerName'
[这是 0.4 版本配置中添加的新内容]
[将 "CommandOnKillEnabled: true" 设置为启用玩家在死亡事件触发命令。当 "CommandOnKillEnabled: true" 时,您可以将 "CommandOnKill:" 和 "CommandOnKill2" 设置为任意内容。请记住,不要使用斜杠 /,否则将无法正常工作。例如:
CommandOnKillEnabled: true
CommandOnKill: say <Killer> Just Killed <Killed>
CommandOnKill2: 'give <Killer> 264 1'
这将执行 /Say <Killer> Just Killed <Killed> 和 /give <Killer> 264 1。
这将运行一条消息,说明击杀者击杀了被击杀者,然后给击杀者 1 颗钻石。如果您不需要第二条命令,只需将 CommandOnKill2: ' ' 留空即可]
CommandOnKillEnabled: false
CommandOnKill: say 此处为 Config.yml 中的命令。您可以在此处使用 <Killer>、<Killed>、<Money>、<MoneyVIP> 和 <MoneyMVP>
CommandOnKill2: 'say 这是在 CommandOnKillEnabled=true 时执行的第二条命令。如果您不想要第二条命令,请将此项留空,使其显示为:CommandOnKill2:'
[如果您希望在玩家死亡时扣除金钱,可以将 TakeAwayMoneyOnDeath 设置为 true。将其设置为 true 后,您可以将 MoneyTakenAway 设置为任意数值。或者,您也可以在游戏中运行命令 /SetMoneyLoss <Number>]
TakeAwayMoneyOnDeath: false
MoneyTakenAway: 100.0
[忽略下面的这些值,请勿更改它们]
PlayerKills:
mrchromey: 4
yoyonoyo555: 2
PlayerDeaths:
yoyonoyo555: 4
mrchromey: 2
[配置文件结束]
错误/故障
- 您无法从控制台运行命令,必须在游戏中运行,否则会报错。我正在努力修复这个问题 :)
- 当其他玩家的击杀数或死亡数为 0 时,您无法查看他们的统计数据。
- 如果您能在评论中报告错误或故障,那就太好了。谢谢!
Player Kill Rewards
Version 0.4 for Minecraft 1.8
This Is a Simple Plugin That Uses Essentials and Vault To Pay Players When They Kill Other Players
It Would Be Nice If You Could Post Your Server IP In The Comments If You Use The Plugin.
Config
Once you start the server with the plugin, under the KillRewards File, You can edit the Config.yml with a text editor such as notepad. You can adjust the default values as such (Anything in [ ] are my comments and won't show up in your config. These are to help you configure your settings):
[If You Do Not Have Permission To A Command, This Message Will Show Up. I used &c Color Code For Red. You Can Find a List of Color Codes Here: http:minecraft.gamepedia.com/Formatting_codes]
noPermission: '&cYou Do Not Have Permission!'
[When You Die, This Is The Message Sent To You, Once Again, I Used &c For The Red Color Code. I Also Set This Up So You Can Use <Killer> To Get The Name Of The Killer. For Example If Player YoshiPi Killed Player YoshiPi2, YoshiPi2 Would Get This Message In Red "You have been killed by YoshiPi"]
KilledMessage: '&cYou have been killed by <Killer>'
[KillerMessage Is The Message Sent To The Killer Once They Kill Someone. <Killed> Gets The Name Of The User That Was Killed So In The Case Above, The Message Would Write Out In Gold "You Have Killed YoshiPi2 and received" now in green which is &a "$10"]
[<money>, <moneyVIP>, and <MoneyMVP> gets the money of a standard player, a player with permission node - KillReward.VIP, and gets the player with permission node - KillReward.MVP]
KillerMessage: '&6You Have Killed <Killed> and received&a$<Money>'
VIPKillerMessage: '&6You Have Killed <Killed> and received&a$<MoneyVIP>'
MVPKillerMessage: '&6You Have Killed <Killed> and received&a$<MoneyMVP>'
[You Can Ignore These Default Values Because You Can Set The money In Game Rewards by /SetMoneyReward, /SetMoneyRewardVIP, and /SetMoneyRewardMVP ]
MoneyRewarded: 10.0
MoneyRewardedVIP: 100.0
MoneyRewardedMVP: 1000.0
[Change This Server Name Here To Your Server Name So When You Type /Stats, Your Server Name Appears At The Top]
ServerName: '&a&lServerName'
[This Is The New Stuff Added In The Config In Version 0.4]
[Set "CommandOnKillEnabled: true" To Add A Command On A Player Death Event. Once "CommandOnKillEnabled: true" Then You Can Set The "CommandOnKill:" and "CommandOnKill2" To Whatever You Like. Remember, Do Not Use A / Otherwise It Wont Work. For Example:
CommandOnKillEnabled: true
CommandOnKill: say <Killer> Just Killed <Killed>
CommandOnKill2: 'give <Killer> 264 1'
This Will Do /Say <Killer> Just Killed <Killed> and /give <Killer> 264 1.
This Will Run A Message Saying That The Killer Killed The Person Who Got Killed, and Then Give The Killer 1 Diamond. If You Do Not Want a Second Command, Just Leave CommandOnKill2: ' ']
CommandOnKillEnabled: false
CommandOnKill: say Command Goes Here In The Config.yml. You can use <Killer> <Killed> <Money> <MoneyVIP> and <MoneyMVP> here if you like
CommandOnKill2: 'say This Is The Second Command That Is Executed When CommandOnKillEnabled=true. If You Don''t Want a Second Command, Leave This Blank So It Says: CommandOnKill2:'
[Here You Can Set Money Taken Away On Death To True If You Want To Take Away Money On Death. Once It Is Set To True, You Can Set MoneyTakenAway To Whatever Number You Would Like. Alternatively, You Can Run The Command In Game /SetMoneyLoss <Number>]
TakeAwayMoneyOnDeath: false
MoneyTakenAway: 100.0
[IGNORE THESE VALUES DOWN HERE AND DO NOT CHANGE THEM]
PlayerKills:
mrchromey: 4
yoyonoyo555: 2
PlayerDeaths:
yoyonoyo555: 4
mrchromey: 2
[End of Config]
Bugs/Glitches
- You cannot run commands from the console, they have to be in game, otherwise you get an error. I am working to fix that now :)
- You cannot see another player's stats when they have 0 kills or 0 deaths.
- It Would Be Great If You Could Report Bugs or Glitches In The Comments. Thanks!
评论 0
登录后参与评分
还没有评论,来抢沙发吧