Unscramble
Unscramble
Download Unscramble: v4.0
Source Code: GitHub
Make sure you have Vault and Essentials installed!
When updating to 4.0, delete your old config file and allow the plugin (Version 4.0) to generate a new one.
Description And Features
Unscramble is a fun game for your players to play. You enter a word, such as "diamond," and the plugin will scramble it for you and display the scrambled word to the general population of the server. All the players have to do is enter their guess into chat as many times as they want. The first person to correctly unscramble the word will get the reward you set.
Use "/us newgame w:[word] p:<prize> a:<amount> t:<Timer> h:<hint-interval> c:<category>" to start a new game
IMPORTANT! - REQUIRES VAULT
Permissions Support (Vault)
Unscramble uses Vault to look all of the following Permissions plugins:
- Permissions 3
- bPermissions
- PEX
- GroupManager
- PermissionsBukkit
- zPermissions
Vault is required for this plugin to work. Check out their page and download vault with the link below.
Dev Page: Vault Dev Page
Perm Nodes And Commands
Perm Node | Associated Command | Description |
---|---|---|
unscramble.welcome | /unscramble | The little welcome message and version number displayed |
unscramble.help | /unscramble help | The help menu that has all the commands |
unscramble.reload | /unscramble reload | Reload both the config.yml and extra.yml files |
unscramble.setscrambleseparately | /unscramble setscrambleseparately [true/false] | Sets the Scramble-Words-Separately to true/false |
unscramble.hint | /unscramble hint | Gives a hint on the current word. |
unscramble.cancel | /unscramble cancel | Cancels the current game. |
unscramble.claim | /unscramble claim | Gives perm to claim your prize |
unscramble.newgame | /unscramble newgame w:[word] | Starts a new game. |
unscramble.newgame.prize.# or unscramble.newgame.prize.* | /unscramble newgame w:[word] p:<prize> | Gives perm for a certain item ID (Ie, 264) or for ALL prizes |
unscramble.newgame.amount | /unscramble newgame w:[word] a:<amount> | Gives perm for the a: tag |
unscramble.newgame.timer | /unscramble newgame w:[word] t:<timer> | Gives perm for the t: tag |
unscramble.newgame.hintinterval | /unscramble newgame w:[word] h:<hint-interval> | Gives perm for the h: tag |
unscramble.newgame.category | /unscramble newgame w:[word] c:<category> | Gives perm for the c: tag |
Screenies
In this one, a game was created (The word being "minecraft") and no one guessed it. The time ran out and the game expired.
Just the two lines of a new game being created.
In this one, the game was created and I happened to guess the word being time expired. There was a short announcement of my win, and a diamond was added to my inventory.
Here, I did multiple guesses, but didn't spell the word correctly on the first couple of attempts. This also demonstrates how the admin running the game can use /us hint to reveal random letter in the word.
Tutorial
The main command of the game is the /us newgame command. The syntax is: /us newgame w:[word] p:<prize> a:<amount> t:<Timer> h:<hint-interval> c:<category>
[] is mandatory, <> is optional
Word (w:) - The word is the word or phrase you want to play unscramble with. Enter word in it's unscrambled form. If you want to enter a multiple word phrase, use underscores instead of spaces. For example: /us newgame multiple_word_phrase 264 1. FOR A RANDOM WORD, USE THE WORD "RANDOM"
Prize (p:) - The prize is what the winnder will receive when they correctly unscramble the word/phrase. It currently only supports item ID NUMBERS. For example, 264 is the item ID for diamond. You can also enter "$" (Dollar Sign) to use currency as the prize. Using currency means you have to have a currency plugin such as EssentialsEco, iConomy, or BOSEconomy.
Amount (a:) - This is the amount of items or money that will be given. If you enter 264 for prize, and then 1 for amount, it will give 1 diamond. If you entered the dollar sign for prize, then this will be the amount. For example: /us newgame word_to_be_unscrambled $ 1000. This will give 1000 game currency upon it's completion.
Timer (t:) - This is an option component to the game. You can set a time variable that will count down. After time has finished, no more answers will be accepted. Time is in seconds only.
Hint Interval (h:) - This is an option to automatically give hints every X amount of seconds
Category (c:) - Is like a theme, or general area of what the word is. (IE, "c:cars" when the word is lambo)
FOR A RANDOM WORD FROM THE CONFIG.YML LIST, USE THE WORD "RANDOM" FOR W:
Donate?
Like what I do? Buy me a beer!
I put a lot of time into coding, testing, and updating my plugins. I even do specialized plugins for people when they PM me (For free). If you love my plugins, this is a way to say thank you.
Change Log
Version 4.0 (June 7th, 2015)
- Big update!
- Added automatic games
- New way of storing words for random games
- Equations to determine rewards based on number of letters in words
- Added a config file
- Support for spigot 1.8.7
Version 3.0 (October 26th, 2012)
- Increased delay of "congrats" message
- Added /us claim with perm node
- Added auto hints
- Added category/theme variable
- Added auto update check
- Fixed $ problem
Version 2.1 (September 2nd, 2012)
- Increased delay of "congrats" message
- Fixed error with timer
- Still problem with factions.
Version 2.0 (August 30th, 2012)
- Fixed problem with Essentials Chat
Version 1.0 (July 27th, 2012)
- Initial Release
@add5tar
Yay! Thanks for the update on factions! And yeah, Ill make sure to keep this one updated.
On the TODO list:
@Hotshot2162
Just to let you know, the "chat" problem is fixed now with Factions 1.6.9.1. They (finally) updated it to use all the async chat methods, and also using Bukkit 1.3.2-R0.1 too. Not sure exactly what fixed it or why it was happening.. but I'm happy now!
Everyone on our server loves you plugin! Keep up the good work!! :)
@xsonarx
Will probably add it in after I get some free time... School and Work is drowning me... I looked at your plugin list, what are you using for perms and chat? Essentials Chat and Group Manager? You should try using my plugin, SimpleChat.
http://dev.bukkit.org/server-mods/simplechat/
As suggested in the comments it would be nice to play the game at set times. I don't want to install any other plugin to do this, its a feature needed right here in this plugin because the "hints" need to be timed right to say them "auto" after the unscramble word is posted. Also isit possible to add a "point" system? - so a user can rack up points by winning answers.
-
-
-
My Plugin's List: http://bit.ly/K8zmut
you would be able to add a setting to translation for the announces in game? would be very good
When I use $ 1000 for example I get an unknown material error, I am using the latest released version of vault as well and iConomy as my currency plugin
@Hotshot2162
I really want to use this plugin but Factions is stopping me.. can I help with any troubleshooting? Is the code open source? I would be happy to do some testing but would need to see how it reads the chat messages :)
@LiLChris06
There already is a list in the config.yml file. And you can use a thirs party plugin to run the following command every X minutes... "/us newgame random [block-id] [amount"
I know on my server we have McMyAdmin to run that command every 20 minutes.
I haven't tried it since it doesn't work with factions yet.
But do have a request if possible in the future...
(OPTIONAL)
Have it run a new game every X time on its own and grab a word in the order (or random) from a wordlist.yml file.
I'll send you a Minecraft word list just to have an example ready for everyone. :)
@Yndi74
Do you also have factions?
OK so I did some testing and it seems to be Factions interfering with the chat.
When I remove Factions, everything seems to work fine, except I get the same error as Yndi74:
Hi! This looks like a great plugin for my server, but I can't make it work properly. The game starts and seems to work fine but no one is able to guess it. It just ignores their word and says that no one guessed it. I have EssentialsChat and the latest Vault installed. I also has Factions which also changes the chat prompt, maybe that is messing with it?
Do players need a permission to guess the word?
i have this error:
11:34 DE [SEVERE] Exception in thread "Thread-1872"
11:34 DE [SEVERE] java.lang.NullPointerException
11:34 DE [SEVERE] at me.chris.Unscramble.UnscrambleTimerThread.run(UnscrambleTimerThread.java:26)
11:34 DE [SEVERE] at java.lang.Thread.run(Unknown Source)
11:34 DE [INFO] [Unscramble] Congratulations ShadowPro!
@XeonG8
The only way that worked to fix the problem was to run the "Congrats" message in a seperate thread, and have it wait a little bit before posting. So right now it's waiting 1/100 of a second and then posting the congrats message. If I increase that value too much, many chat posts will go by before the "Congrats" message appears.
@Hotshot2162
Oh ok I see now it just leaves the players winning correct word like they said it..
Can you make it stand out more, because unscramble announces them as the winner, then the winning players chat line appears after, like that doesn't come in the right order, as they should be announced the winning player after that correct word is said in chat.
[Unscramble] Congratulations <playername> [Unscramble] Your answer: <correctword>, You win prize: <Prize>
Anyway still an improvement now most seem to get what the correct word was instead of the seeing the bugged %1$s: %2$s chat, and asking what the answer was.
@XeonG8
Finished it today, actually.
How goes the bug fixing?
sure
@XeonG8
Can you please send a screenshot of EssentialsChat glitching out? It would help me a lot.
Thanks, its only thing that's not working.