QuizPromote
这个插件有什么功能?
一个用于提升玩家权限的聊天问答。
你可以定义一些问题及其答案。
当回答者输入关键词(可配置)到聊天框时,这些问题会以随机顺序显示给回答者。
当回答者正确回答了所有问题时,他将被提升到指定的组别。
建议、功能与增强
当我有空闲时间时,我会创建一个新的 QuizPromote 版本。
你可以通过 在 bitbucket 上提交 issue 来影响和贡献新版本(你可以匿名操作,无需注册等)。
请精确描述你的想法。
提供你想要的功能的示例也会很有帮助。
例如:“一般来说它应该……”
“当用户执行 X 时,Y 应该发生”
“功能 Z 仅对成员/管理员可用……”
“我希望功能 X 可以在配置文件中配置”
等等。
你写得越详细,我就越能理解你想要插件实现什么,结果也会越好 ;)
支持此插件
如果你想支持我开发此插件和新功能,请考虑进行 paypal 捐赠 ,这样我可以投入更多时间在这个项目上,或者 在 bitbucket 上克隆该项目 以修复错误或实现新功能。
你也可以为此插件制作视频教程并发布链接在这里。
你还可以帮助翻译 QuizPromote 到其他语言。关于翻译的进一步说明请参阅多语言支持部分。
安装
Tekkit 用户
Tekkit 3.1.3 仍然使用 Craftbukkit 1.2.5。因此请为 1.2.5 安装 Quizpromote。
版本信息
适用于 Craftbukkit 1.2.5 的 Quizpromote 也应在更高版本中有效。适用于 Craftbukkit >=1.3 的 Quizpromote 不适用于 Craftbukkit <=1.2.5。
从性能角度来看,适用于 Craftbukkit >=1.3 的 Quizpromote 更好,所以如果你使用更新的 craftbukkit >=1.3,请使用适用于 Craftbukkit >=1.3 的 Quizpromote。
此插件目前与 PermissionsEx 兼容。
- 将 Quizpromote.jar 复制到服务器的 plugins/ 文件夹中。
- 确保已安装 PermissionsEx(plugins/ 文件夹中提供 PermissionsEx.jar)
如何配置它?
配置文件位于 plugins/QuizPromote/quizConfig.yml。
你可以在这里定义问题和答案,以及一些其他配置内容。
目前仅支持 PermissionsEx。其他权限系统即将实现。
如果你想禁用封禁,只需设置:
banDuration: 1 ms
要禁用最大答题时间限制,请将 maxTime 设置为较高的值。
maxTime: 1 y
Quizconfig.yml 看起来像这样:
# put in your questions here. correct answers are signed with a +.
questionnaires:
-
world: world
#howmany questions should be asked from the questions given here
questionCount: 4
questions:
- "isgriefingallowed?":
- yes
- no
- + only under special circumstances
# if you want to give pure number answers add some "" around them.
- "howmuchsilverdoeseveryuserownatthebeginning?":
- "1.000"
- "2.500"
- "30"
- "+500"
- "Whatisthenameoftheserverowner?":
- Neutrum_
- + Tüffel
- Gorgi88
- Daxius87
- powerpandi
- "Mayyoufarmwhereeveryouwant?":
- + only in the mining world
- only when it does not bother anyone
- only at my place
- i may farm wherever i want
banDuration: 450 milliseconds 1 m
maxTime: 1000 ms 10 y 4 Seconds
startCommand: go
# allowed Time Values:
# millisecond second minute hour day week month year
# Milliseconds seconds minutes hours days weeks months years
# ms s m h d t w mo y
# Ms S M H D T W Mo Y
# 如果你想配置玩家在全局范围内被提升到的组:
successPrivilegesAll:
pex: [ Admins ]
# 如果你想配置玩家在特定世界
#中被提升到的权限组:
#successPrivileges:
# -
# world: world
# successGroup:
# pex: [Member, Admins]
# groupmanager:
# permissionsBukkit:
# bPermissions:
# -
# world: hardcoreworld
# successGroup:
# pex: Admin
# groupmanager:
# permissionsBukkit:
# bPermissions:
Minecraft Port Central
MCPC 拥有奇特的类加载器系统。因此我们需要进行一些修改:
- 解压 scala_version.jar 文件(它实际上是一个 zip 文件)。
- 解压 QuizPromote_version.jar 文件
- 将 scala_version/scala/ 文件夹复制到已解压的 QuizPromote_version/ 文件夹中
- 将 QuizPromote_version/ 文件夹打包为 QuizPromote_version.jar。zip 文件必须直接包含 QuizPromote_version/ 文件夹内的内容。如果你遇到 org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml 错误,说明 zip 文件里包含了 QuizPromote_version/ 文件夹本身,而不是其内部的内容。
在 Linux/macOS 下打包的简便方法:
cd QuizPromote_version/
zip -r ../QuizPromote_version.jar ./
- 将新的 QuizPromote_version.jar 复制到 plugins/ 文件夹。
- 启动服务器
如何运行?
只需启动服务器,登录游戏并在聊天栏中输入关键词 'go'(可在配置文件中调整,默认为 'startCommand: go'),然后按回车键。
Bug 与建议
请在 Bitbucket 仓库的 "issues" 页面提交 Bug 和建议:
或者直接在本文下方留言。
有问题吗?
请将你的问题作为评论发布在这里。
多语言支持
插件中的所有消息均可编辑并翻译为其他语言。
截至目前,仅支持英文和德文。默认情况下会使用名为 strings.yml 的文件。如果找不到该文件,则会使用 strings_EN_US.yml。
因此,要更改语言,请将你喜欢的语言文件重命名为 strings.yml。
如果你想为 QuizPromote 贡献翻译,请发送你的已翻译的 strings.yml 文件,或者在 Bitbucket 上克隆该项目并在那里添加它们。
故障排除
如果你收到类似以下的错误信息:
Could not pass event AsyncPlayerChatEvent to QuizPromote v1.2 org.bukkit.event.EventException at
.....
net.minecraft.server.v1_4_6.NetworkReaderThread.run(SourceFile:93) Caused by: java.util.NoSuchElementException: key not found: Firstspawn at
.....
这说明你的 quizconfig.yml 文件中存在某些问题。请再次检查该文件是否存在拼写错误或其他问题。
特别是 *key not found: xy* 会提示你错误的位置。
如果你收到类似以下的错误信息:
...
ClassNotFoundException: scala.ScalaObject
...
这表明类加载器存在问题。要么是 QuizPromote/ 目录中的 scala jar 文件缺失,要么是该类加载器无法找到它。
- 删除 QuizPromote/ 文件夹并重启服务器。如果这不起作用,请尝试:
- 按照 Minecraft Port Central 中的步骤操作
QuizPromote
What does this plugin do?
A chat quiz to promote players.
You can define some questions and answers.
They will be displayed in random order to the respondent when he enters the keyword (configurable) into the chat.
When the respondent answers all questions correctly he gets promoted to a defined group.
Proposals, Features and Enhancements
When i have some free time i will create a new QuizPromote version.
You can influence and contribute to the new version by creating an issue at bitbucket(You can do this anonymuously. No need to register or such stuff).
Describe precisely your idea.
Examples on the functions you would like would be nice, too.
i.e. "Generally it should do..."
"When the User does X then Y should happen"
"Function Z is only available for members/ Admins... "
"I want that function X is configurable in config file"
etc.
The more you write the better i can understand what you want the plugin to do and the better the result ;)
Support this plugin
If you want to support me in developing this plugin and new features consider a paypal donation such that i can put more time into this project or clone the project on bitbucket to fix bugs or implement new features.
You could also create a video tutorial for this plugin and post the link here.
Also you can help to translate QuizPromote to other languages. Further instructions for translation are given in multi language support.
Installation
Tekkit Users
Tekkit 3.1.3 still uses Craftbukkit 1.2.5. so install Quizpromote for 1.2.5.
Version Info
Quizpromote for Craftbukkit 1.2.5 should also work for higher versions. Quizpromote for Craftbukkit >=1.3 doesn't work with Craftbukkit <=1.2.5.
Quizpromote for Craftbukkit >=1.3 is better in a performance point of view so if you use the newer craftbukkit >=1.3 use Quizpromote for Craftbukkit >=1.3.
This plugin currently works with PermissionsEx.
- Copy Quizpromote.jar into your servers plugins/ folder.
- make shure PermissionsEx is installed(PermissionsEx.jar is available in the plugins/ folder)
How to configure it?
The configuration is done in plugins/QuizPromote/quizConfig.yml.
There you define your questions and answers as well as some more config stuff.
Currently only PermissionsEx is supported. Other permission systems will get implemented soon.
If you want to disable banning just set:
banDuration: 1 ms
To disable maximum question time set maxTime to a high time.
maxTime: 1 y
Quizconfig.yml looks like this:
# put in your questions here. correct answers are signed with a +.
questionnaires:
-
world: world
#howmany questions should be asked from the questions given here
questionCount: 4
questions:
- "isgriefingallowed?":
- yes
- no
- + only under special circumstances
# if you want to give pure number answers add some "" around them.
- "howmuchsilverdoeseveryuserownatthebeginning?":
- "1.000"
- "2.500"
- "30"
- "+500"
- "Whatisthenameoftheserverowner?":
- Neutrum_
- + Tüffel
- Gorgi88
- Daxius87
- powerpandi
- "Mayyoufarmwhereeveryouwant?":
- + only in the mining world
- only when it does not bother anyone
- only at my place
- i may farm wherever i want
banDuration: 450 milliseconds 1 m
maxTime: 1000 ms 10 y 4 Seconds
startCommand: go
# allowed Time Values:
# millisecond second minute hour day week month year
# Milliseconds seconds minutes hours days weeks months years
# ms s m h d t w mo y
# Ms S M H D T W Mo Y
# if you want to configure the groups a player
# gets promoted to on a global base:
successPrivilegesAll:
pex: [ Admins ]
# if you want to configure the groups a player
# gets promoted to on a per world base:
#successPrivileges:
# -
# world: world
# successGroup:
# pex: [Member, Admins]
# groupmanager:
# permissionsBukkit:
# bPermissions:
# -
# world: hardcoreworld
# successGroup:
# pex: Admin
# groupmanager:
# permissionsBukkit:
# bPermissions:
Minecraft Port Central
MCPC has a strange class loader system. Thats why we need to do some modifications:
- Extract the scala_version.jar file(it is actually a zip file).
- extract the QuizPromote_version.jar file
- copy the scala_version/scala/ folder to the extracted QuizPromote_version/ folder
- zip the QuizPromote_version/ folder as QuizPromote_version.jar . The zip file must contain directly the contents of the QuizPromote_version/ folder. if you get org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml the content of the zipfile is the QuizPromote_version/ folder and not directly the QuizPromote_version/ folders contents.
Easy way to zip in linux/mac os:
cd QuizPromote_version/
zip -r ../QuizPromote_version.jar ./
- copy the new QuizPromote_version.jar to the plugins/ folder.
- start the server
how to run it?
just start the server, login and enter the keyword 'go' (adjustable in config 'startCommand: go') into the chat. Press enter.
Bugs & Suggestions
Post bugs and suggestions on bitbucket repo in "issues"
or just post them here.
Questions?
Post your questions here as comment.
Multi Language Support
All messages in the plugin can be edited and translated into other languages.
Till now english and german are supported. By default a file called strings.yml is used. If this is not found strings_EN_US.yml is used.
So to change the language rename your favourite language file to strings.yml.
If you want to support QuizPromote send me your translated strings.yml files or clone the project on bitbucket and add them there.
Troubleshooting
if you get an error message like:
Could not pass event AsyncPlayerChatEvent to QuizPromote v1.2 org.bukkit.event.EventException at
.....
net.minecraft.server.v1_4_6.NetworkReaderThread.run(SourceFile:93) Caused by: java.util.NoSuchElementException: key not found: Firstspawn at
.....
something in your quizconfig.yml is messed up. Check that file again if there is a typo or something.
Especially *key not found: xy* gives you a hint where the error is.
if you get an error message like:
...
ClassNotFoundException: scala.ScalaObject
...
there is a problem with the class loader. Either the scala jar file in QuizPromote/ is missing or the classloader doesnt find it.
- delete QuizPromote/ folder and restart server. if that doesnt help try to:
- follow the steps in Minecraft Port Central
评论 0
登录后参与评分
还没有评论,来抢沙发吧