QuizPromote
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: - "is griefing allowed?": - yes - no - + only under special circumstances # if you want to give pure number answers add some "" around them. - "how much silver does every user own at the beginning?": - "1.000" - "2.500" - "30" - "+ 500" - "What is the name of the server owner?": - Neutrum_ - + Tüffel - Gorgi88 - Daxius87 - powerpandi - "May you farm where ever you want?": - + 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" https://bitbucket.org/mnyx/quizpromote 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
-
View User Profile
-
Send Message
Posted May 11, 2013When 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).
-
View User Profile
-
Send Message
Posted Nov 17, 2012@omegastaralpha
@Noah410
@ItsTrigger
R: QuizPromote_1.2.jar for CB 1.2.5-R5.0 is ready 4 download.
-
View User Profile
-
Send Message
Posted Nov 16, 2012@omegastaralpha
wait for approval of QuizPromote_1.2.jar for craftbukkit 1.2.5. will be there in a couple of hours.
-
View User Profile
-
Send Message
Posted Nov 16, 2012Tekkit 3.1.2 cb 1.2.5-R4.1
-
View User Profile
-
Send Message
Posted Nov 16, 2012@omegastaralpha
Well can you tell me the tekkit version and the craftbukkit version such that i can check the problem?
-
View User Profile
-
Send Message
Posted Nov 16, 2012Awesome plugin but I am sad I cant get it to work in tekkit MC 1.2.5.. Any chance of a fix for this?
-
View User Profile
-
Send Message
Posted Nov 14, 2012@Noah410
Dear Noah,
in a couple of hours QuizPromote_1.2.jar will be available (after approval). This version should work out of the box with tekkit server since tekkit uses bukkit. You dont need that run script anymore. you dont need to configure scala-library. just drop it in as other plugins into plugins/.
QuizPromote works with all versions of craftbukkit 1.3.1 to 1.4.2.
-
View User Profile
-
Send Message
Posted Nov 14, 2012Could you please make a version that's compatible with my Tekkit server? I'm running Tekkit 1.3.2 and craft bukkit . A version for my server would be much appreciated.
Thanks,
Noah
-
View User Profile
-
Send Message
Posted Nov 14, 2012@omegastaralpha
Wait for approval of QuizPromote_1.1 and have a look at the changes in the installation section above.
everything should be easier now. Have fun with the Plugin :)
-
View User Profile
-
Send Message
Posted Nov 14, 2012a new version of quizpromote will be released soon. quizpromote_1.1.jar waits for approval.
-
View User Profile
-
Send Message
Posted Nov 13, 2012@omegastaralpha
dont forget the new lines.
Like that your server would have 1GB max. memory. Well i dont know how exactly multicraft works. This is a run script for a single server and i dont know if multicraft supports run scripts. if you cant configure multicraft to use run.sh just try to add scala-library-2.9.1.jar to the "classpath" of multiraft.
I will try to create a plugin version where you dont need to have a run script.
-
View User Profile
-
Send Message
Posted Nov 13, 2012I run a multicraft tekkit server on centos. I put scala-library-2.9.1.jar in root server dir where map and plugins are? I would I make a run.sh with
And add the run.sh as my jar in multicraft? or what because I need to be able to start and stop my server from multicraft cpanel and my moderators really want this plugin they are giving manual quizes now.
-
View User Profile
-
Send Message
Posted Nov 11, 2012@ItsTrigger
did you rename the scala jar according to ... -cp "scala-library.jar;craftbukkit.jar" and did you use the run script for your operating system?
-
View User Profile
-
Send Message
Posted Nov 11, 2012I've tried putting the scala plugin in the root folder, my libs folder and my plugins folder, everywhere I put it gives me the same error.
-
View User Profile
-
Send Message
Posted Oct 15, 2012Hope Bpermission support will coming soon, i enjoy your work madanyx, great plugin ! :)
-
View User Profile
-
Send Message
Posted Sep 23, 2012It's funny...I look at this now, I've been doing this with Citizens quests xD You should add a way to give the players packages along with rights to build.
-
View User Profile
-
Send Message
Posted Sep 19, 2012@ferds814
it is planned to support pex, groupmanager , permissionsBukkit , bPermissions in future versions. currently only permissionsex(pex) is working.
-
View User Profile
-
Send Message
Posted Sep 19, 2012could this use essentials instead of permissions?? or even both
-
View User Profile
-
Send Message
Posted Sep 13, 2012@Nim64
Post bugs and suggestions on bitbuckit repo in "issues". https://bitbucket.org/mnyx/quizpromote i will consider new features when i have free time to implement them.
-
View User Profile
-
Send Message
Posted Sep 13, 2012@madanyx
Hey I like this idea. Are you open for suggestions? Could you make it so that the player taking the quiz gains certain permissions based on their answer? Also could you make it so players could retake the quiz if they want to try again, and if they do this, make it cost money?