This may sounds like odd, but I need a plugin which gives players an random item through typing a command. Here is full detail of my request; Player A types /rgive command. He gets an random item choosed one written in config.yml. That's it. It could be slightly better if I can set listed item's quantity but no big deal. No cooldowns/economy support/any limitations needed here. I just want to get an random item using a command. It sounds like no use for ordinary server so I am asking here. This is totally an optional request but it is cool sending a message for players as system message which item they just got through the command. Again, this is optional request and can be ignored if this takes too much time to implemented. Can someone make this plugin? It would be great if the plugin is simple and not being broke each bukkit update if I am not asking too much since I have heard they are removing item IDs anytime soon which I afraid. Thanks.
Dotoo Keeping this working for 1.8 is pretty tricky based on that ID removal part. We can't counter that without knowing what we can use. No changes to the github yet.
I'm on it right now ... Here ya go ^^ https://github.com/CustomCraftDev/randomgive (Uploaded it on my private cloud ) Have fun... PS: If you have questions or you want to add/remove something pm me. undeaD_D EDIT by Moderator: merged posts, please use the edit button instead of double posting.
http://prntscr.com/4lrche nope it gets executed ... UPDATE: - small improvements made ... - raplaced replace() with replaceAll() - added $World$
undeaD_D Iirc, calling setEnabled() doesn't really 'disable' the plugin - it just tells everyone it's disabled. Revert that change. replaceAll() is for regex.
thats what the command /rdisable is ment to do -.- if something gets out of control (spamming etc.) UPDATE: - replaced replaceAll() with replace() - learned something new today \o/
undeaD_D But does it stop it, though? Since you never check isEnabled() for anything, I don't believe that marking it as disabled will make a lot of difference. Unless the internal command handling process checks if the plugin is disabled before calling the onCommand() method but that doesn't sound too likely to me.
if you dont trust me try it http://prntscr.com/4lrw3h commands are disabled after calling /rdisable ... but you can still see it when calling /help or /pl