SurpriseEggs
SurpriseEggs v2.0 has been released! Currently looking for documenters!
Hold a dragon egg and then right click......Whooo! You opened a dragon egg!
Features
With this plugin, players that have permissions can open dragon eggs and get random rewards by type in a command or right click on a placed egg. Sure, everything is configurable!
Commands
- /se open - open eggs on your hand
- /se reload - reload configs
Permissions
- SurpriseEggs.use - right click to open an egg
- SurpriseEggs.open - use /se open
- SurpriseEggs.reload - use /se reload
(OPs have all permissions above by default)
Auto-Updater
This plugin contains an auto-updater to check updates and notify you in order to make sure you are using the newest, not buggy version.
However if you want to disable this feature for some reasons, you can set checkUpdate to false in plugins/SurpriseEggs/config.yml.
Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Opting out of this service for this plugin can be done by editing plugins/SurpriseEggs/config.yml and changing useMetrics to false.
TODO List
(Done),
(Cancelled), (Planning)- Add percentage support. (Done in v1.1.3)
- Add economy support. (Done in v1.1.3)
- Add Multi-Type Eggs. (Done in v2.0.0)
- A complete recode. (Done in v2.0.0)
- Add random durability and amount support. (Done in v2.0.0)
Donate
I am just a student who put a lot of time into this project and do my best on it.
If you love it, feel free to donate a little to my PayPal account:
Thank you, it is the best way to support the development and encourage me.
Known Problems
- None so far.
My Other Plugins
- LootCrates - Another awesome crate plugin, but only gives out one item per crate.
- BetterPositionTP - A better way to travel around the world(jk, but it is simple and useful).
Sorry for my bad English. If you find any grammer or speech mistake, please PM me. <3
Version 1.1.3 is out!
I highly recommended you to delete your old config file and let the plugin regenerate a new one.
Because chance no longer means how many chance will it be shown instead of OTHER ITEMS.
It means how many chance it will be shown instead of AIR now!!! "x:" took "chance:"'s job.
In order to update to this version. You need to change all "chance:" to "x:".
You need to install Vault in order to enable economy support.
Version 1.1.3 is ready! I will upload it after some tests.
@delsolsi213
Not that kind. Its - PAPER(or other material) 1 money:1000
@ChengZi368
add command support? example
- command: 'eco give {username} 1000' chance:3
Nice plugin, btw that durability and amount of items or money thing will come in handy! Definitely try it out!
That'll be cool ;)
Also I am looking into random durability and amount of items(or money). They can be added easily but I am not sure you guys will need it.
@gabrielmaennl555
Thats what I am thinking about, But the command maybe useless? You can just /pay xxx.
Item like cards can be possible. Right click with that and you will earn money in that stuff. ;)
I got a REALLY good idea its called a "Card" or idk what to call it XD but in the Lore it will say the money it has in it e.g.: name: &6Money Card lore: &2$50 In card or something This could be a completely different plugin you could make and then players can also do /card (money) and they can put their money in the card or idk and then you right click the card to redeem it idk or it could just be for prizes like in an egg or a boss drop from a boss plugin ;D
@gabrielmaennl555
Yes..I'd prefer to give players money at the moment they opened the egg. But it will looks bad so ..
@gabrielmaennl555
Or! a player can just click it while its in the egg to earn money
@ChengZi368 hmmm Maby add an option for both? like instantly add money or right click but like put an option? to enable that or disable that?
@gabrielmaennl555
However its still one question left. How should the plugin gives players money?
Just click on papers and earn it instantly, or hold the paper in hand then rightclick to earn money?
EDIT: I think earn it instantly is the best way. Whats do you guys think of it?
Well on servers like Koolz server and Mine we both Have cobblestone to sell or items in it to use /sell with But the piece of paper thing sure will do better ;D
I dont have any idea what should eco support looks like.
Just give money to player when he opened an egg;
Or put something(a piece of paper?) in the egg and player have to click it in order to earn money.
@asddsa11
I decided not to add it because it is easy to add something in the config.
But it is hard for me to do that because Im not using normal ways to load the config.
@MGbeenieboy
You can use something like MONSTER_EGG:<value> to do that.
In order to get the value, try to use TMI or NEI.
what do i do if the item i want to have in the eggs is a monster egg? How do i set which monster egg it is, because they have the same material-id, i think
The new config system is ready!
Changes:
"x:" means how many chances that the slot will be this item (instead of another item).
"chance:" means how many chances that the item will appear (instead of air).
This is a feature in v1.1.3. Not so far.
Version 1.1.2 is out!