插件信息
将狩猎之旅视为狩猎行动
每次狩猎之旅可按以下方式配置:
- 计入狩猎进度的特定生物类型
- 击杀生物有效的特定白天/夜间时段
- 开始狩猎之旅所需的狩猎点数(即此前完成的狩猎之旅数量)
- 玩家完成当前狩猎之旅后获得的掉落物类型
规则
- 每位玩家同一时间只能报名参与一次狩猎之旅
- 狩猎之旅的状态会被持久保存,不要求玩家在一个在线会话内完成
命令
玩家命令
以下命令对所有玩家可用:
- /safari list - 列出所有可用的狩猎之旅
- /safari info - 查看你当前的狩猎之旅及狩猎点数/统计信息
- /safari start <狩猎之旅名称> - 开始指定的狩猎之旅
- /safari stop - 取消你当前的狩猎之旅
- /safari showrecords - 显示当前狩猎之旅记录时间(小时:分钟)以及创造该记录的玩家
管理命令
(仅限拥有特殊权限的玩家或从 Minecraft 服务器控制台访问)
有两个管理命令用于启用/禁用给定世界的狩猎之旅:
- /safari add_world <世界名称> - 为该世界启用狩猎之旅
- /safari remove_world <世界名称> - 为该世界禁用狩猎之旅
控制台命令
此命令:
- /safari showrecords <玩家名称>
可从服务器控制台使用,以启用可能触发控制台命令的告示牌。
这样做是为了设置告示牌(或区域),以便将当前记录发送给指定玩家(该玩家当前必须在线)
配置
服务器管理员可以按如下方式配置可用的狩猎之旅(所有狩猎之旅都是 “safaris” 部分下的直接键值对):
- safaris:
- <狩猎之旅名称>(例如:harmless):
- description: <狩猎之旅描述>(例如:杀死无害的生物(牛、鸡、猪、羊))
- name: <某个名称>
- required_points: <玩家需要收集多少点数才能开始此次狩猎之旅;至少应有一个点数为 0 的狩猎之旅可供使用>
- mobs_to_kill: <玩家需要杀死多少生物才能完成此次狩猎之旅>
- types_of_mobs_to_kill: <计入击杀计数的生物列表>
- 详细信息请参阅:
- CHICKEN
- COW
- PIG
- SHEEP
- addDrops: <应添加到最终击杀掉落物中的掉落物列表>
- 物品 ID 请参阅:
- 配置语法选项请参阅:
- '289': 2 20
- addRecordDrops: <如果玩家创造了本次狩猎之旅的新时间记录,应添加到最终击杀掉落物中的掉落物列表>
- 物品 ID 请参阅:
- 配置语法选项请参阅:
- '289': 2 20
安装
非常简单:
- 下载最新的 safari.jar 文件
- 将其放入你的 $MINECRAFTSERVER/plugins 目录
- 启动你的 Minecraft 服务器
完成 :-)
考虑额外的设置步骤:
- 在给定世界中启用/禁用狩猎之旅(取决于你的服务器设置)
- 配置提供的狩猎之旅配置文件(添加/移除某些内容或调整掉落物/点数限制)
技术信息
更新日志
版本 3.1
- 完成了记录时间功能(新增命令 “showrecords”,也可通过控制台调用,如:safari showrecords toSomePlayer,这将把记录发送给该玩家……如果你设置了可以发送控制台命令的告示牌,这可能会很有用)
- 对消息格式进行了优化(现在带有颜色 ;) )
- 验证插件与 Bukkit 1.3.1 R1.0 兼容(已编译、启动服务器并进行了若干次狩猎之旅测试)
- 开始支持团队狩猎之旅
版本 3
- 修复了生物击杀未被计数的 bug
- 实现了初始的 “竞赛” 功能
- 添加了 “addRecordDrops” 的配置支持,当玩家创建新的狩猎之旅记录时,可用于奖励玩家
- 进行了一些语法修正和格式化
版本 2
- 更新至 craftbukkit-1.2.5-R5.0(无实质更改,仅重新编译和测试)
- 现有的 config.yml 不再被覆盖;修复:
- 添加了关于狩猎之旅进度的反馈;修复:
- 从 build.xml 中移除了不必要的构建命令
版本 1
- 测试了 addDrops 配置
- 添加了完成狩猎之旅后的默认掉落物
- 将最后的德语表达翻译为英语
- 当尝试加入不存在的狩猎活动时添加了提示信息
版本 0.1
源代码
完整的源代码可在 GitHub 上获取:
Plugin-Information
Think of safaris as hunting-jouneys
Each safari may be configured like this:
- specific mob-types which count for the safari progress
- specific day/night time hours during which mob-kills are valid
- required safari-points to start the safari (number of previously completed safaris)
- the kind of drops the player is rewarded upon completing his current safari
Rules
- Each player may enlist for one Safari at a time
- The Safari is persisted and does not require the player to complete it within one online-session
Commands
Player commands
The following commands are accessible for all players:
- /safari list - List all available safaris
- /safari info - See your current safari and your safari points/statistics
- /safari start <safariname> - Start the specified safari
- /safari stop - Cancel your current safari
- /safari showrecords - display current safari-record times (hours:minutes) and who accomplished this record
Administration-Commands
(only accessible for players with special permission or from the Minecraft server-console)
There are 2 admin-commands to de-/activate the Safaris for given worlds:
- /safari add_world <worldname> - to activate Safaris for this world
- /safari remove_world <worldname> - to deactivate Safaris for this world
Console-Commands
This command:
- /safari showrecords <playerName>
May be used from the servers console in order to enable signs which might trigger console-commands.
This is done in order to setup signs (or maybe areas) which send the current records to a given player (who is currently online)
Configuration
Server-Admins may configure the available safaris like this (all safaris are direct keys inside the "safaris" section:
- safaris:
- <safariname> (e.g.: harmless):
- description: <safari description> (e.g.Kill Mobs which are harmless (Cows, Chicken, Pig, Sheep))
- name: <some name>
- required_points: <how many points does the player need to gather to start this safari; at least 1 safari with 0 points should be available>
- mobs_to_kill: <how many mobs does the player need to kill to complete this safari
- types_of_mobs_to_kill: <list of mobs which are taken into account for kill-counter>
- see: for details
- CHICKEN
- COW
- PIG
- SHEEP
- addDrops: <list of drops which should be added to the final kill drop>
- see: for item-ids
- and for configuration-syntax options
- '289': 2 20
- addRecordDrops: <list of drops which should be added to the final kill drop if the player achieved a new time-record for completing this safari>
- see: for item-ids
- and for configuration-syntax options
- '289': 2 20
Installation
Pretty easy:
- Download the latest safari.jar file
- put it into your $MINECRAFTSERVER/plugins directory
- start your Minecraft-Server
Done :-)
Think about additional setup-steps:
- enabling/disabling safaris on given worlds (depends on your server-setup)
- configuring the supplied safari-configuration (adding/removing some or adjusting the drops/points limits)
Technical information
Changelog
Version 3.1
- Finished record-time stuff (new command "showrecords", which is also callable via Console like: safari showrecords toSomePlayer which will send the records to this player... might be usefull if you would setup signs which can then send console-commands)
- some formatting of messages (now with colors ;) )
- verified Plugin to be compatible with Bukkit 1.3.1 R1.0 (compiled it, started the server and did some safaris)
- start of team-safaris
Version 3
- fixed bug regarding mob-kills not counted
- initial "competition" feature implementation
- added configuration-support for "addRecordDrops" which will be used for rewarding a player if/when he/she creates a new record for a safari
- some syntax corrections and formatting
Version 2
- updated to craftbukkit-1.2.5-R5.0 (no real changes, just re-compile and test)
- Existing config.yml gets not overwritten anymore; fixes:
- added feedback about safari-progress; fixes:
- removed unnecessary build-command from build.xml
Version 1
- tested addDrops-configuration
- added some defaults for safari-drops upon completion
- translated the last german expressions to english
- added message when trying to enlist for non-existing safari
Version 0.1
- Releasing initial beta-version
Source Code
The complete source-code is available on github:
评论 0
登录后参与评分
还没有评论,来抢沙发吧