Filled Random Weapon Chooser

Discussion in 'Plugin Requests' started by adi0115, Feb 27, 2016.

Thread Status:
Not open for further replies.
  1. When you get a specific item (customizable in config) for this example crafting table, when you right click a crafting table, it will get replaced with a random weapon with a random enchant. In the config you can setup what is the item you need to right click and what weapons can spawn with what enchants.

    Perms:
    rwc.use -To use it?

    Commands
    /rwc reload
     
  2. Offline

    pie_flavor

    Last edited: Feb 27, 2016
    xwerswoodx likes this.
  3. @pie_flavor Looks really good, I tried it out on 1.8.8 and it seems that it doesn't work.
     
    Last edited: Feb 27, 2016
  4. Offline

    pie_flavor

    @adi0115 Is there an error in the console? Because it worked fine on my 1.7 server, and nothing in it should change between versions.
     
  5. @pie_flavor I don't see any errors, I restarted the server to see maybe there some errors on start or while I reload the plugin and there's nothing there. I though it may be something with the config so I deleted it and let the plugin generate a new one and it seems it still doesn't work.
     
  6. Offline

    pie_flavor

  7. Offline

    pie_flavor

    @adi0115 And you're telling me it does nothing when you right click a crafting table with another crafting table after making sure you have the permission rwc.use (which is enabled by default)?
     
  8. @pie_flavor Oh, you have to right click a crafting table with a crafting table :), I though you just have to right click a crafting table in the inventory, sorry for your troubles, the plugin works perfectly fine on 1.8.8.
     
  9. Offline

    pie_flavor

    @adi0115 Sorry for the confusion. I can change that if you want.
     
  10. Offline

    xwerswoodx

    I like this plug-in but can you add to config file lore and name section too? For giving people some items, like vote keys. Also if I want to give items with nether star, how can I change config?
     
  11. Offline

    pie_flavor

    @xwerswoodx Will do. And when it says WORKBENCH, change that to NETHER_STAR.
     
    xwerswoodx likes this.
  12. Offline

    xwerswoodx

    Thank you for answer, I am waiting for next update, i think this is very useful plug-in, maybe you can upload to developer website too.
     
  13. If you can that would be great, maybe if you want to put time into this plugin add a option for that in the config? Incase people prefer to right click a crafting table.
    Since I see people interested maybe add multiple items support? For example right clicking bedrock gives you random pickaxes and right clicking chest gives you random bows? I don't need this but I feel like this would be a great feature and I'm sure someone will ask for this.
     
  14. Offline

    pie_flavor

    @adi0115 @xwerswoodx
    I have rewritten it to both your suggestions. You no longer are required to right click on a physical crafting table to generate the item, merely to hold the generator and right click on it. The config has been completely rewritten, you'll have to delete your old one before running the new version. 'generators' is a list of compound tags. The first one, 'generator', is a serialized ItemStack which represents what must be clicked, rather than the previous Material. This allows you to require a custom name and lore, among other things. Please see this for an ItemStack serialization reference. The other tag, 'items', is the old list of items that can be generated. You can now have multiple item generators. In the sample provided config, you can use a crafting table named &fSword Generator to generate a sword, and a crafting table named &fBow Generator to generate a bow.
    I might take xwerswoodx's advice and upload it to BukkitDev if I determine that it's a completely original idea, I only upload things that are useful to a lot of people and don't have an equivalent already there.

    My computer thinks it's being funny by not letting me run my test server at the moment, but I am confident that nothing should break as long as you delete the config because I haven't actually changed much, only moved around existing code. However, it is entirely possible that you will encounter a bug. Please reply if you do.

    Redownload from the original link for the new version.
     
  15. @pie_flavor /rwc-reload dosen't work anymore, shows up that "An internal error occured while attempting to perform this command"
     
  16. Offline

    timtower Administrator Administrator Moderator

  17. Offline

    pie_flavor

    @adi0115 *sigh* i failed at writing the default config. redownload and delete the config again, it will work this time.
     
  18. @pie_flavor Seems it still dosen't work, the error from console looks like it's the same http://pastebin.com/WLd6LAJh
    I have deleted the config and downloaded from here:
    I'm not sure if you forgot to update your dropbox or the plugin has the same issue.
     
  19. Offline

    pie_flavor

    @adi0115 No, the dropbox was updated. Try redownloading it and deleting the config one more time - I forgot that the Material for crafting table was not CRAFTING_TABLE, but rather WORKBENCH.
     
  20. @pie_flavor It dosen't work, I deleted the config and re-downloaded the plugin 3-5 times, it's seems it working because when it generated new config it say WORKBENCH instead of CRAFTING_TABLE, so I must be using the correct version.
     
  21. Offline

    pie_flavor

    @adi0115 All right. Sorry for repeated idiocy. Delete config, redownload plugin. It definitely 100% works this time.
     
  22. @pie_flavor Yes, it works now, no errors, but when I try use a generator, nothing happens, I took a crafting table, renamed it and nothing happens when I click on it, am I doing something wrong?
     
    Last edited: Mar 5, 2016
  23. Offline

    pie_flavor

    @adi0115 I am going to guess that it's because you renamed it in an anvil.
    The item has a white color code in front of the name, to prevent italicization.
    If you have Essentials, try /i workbench 1 name:&fSword_Generator
    I have tested the plugin thoroughly.
     
  24. @pie_flavor I did use Essentials, I just forgot about the color code, the plugins works fine now, thanks a lot :)

    EDIT: Reload command seems not to reload the plugin, I updated the config, reloaded the plugin but the updates I did don't change ingame.
     
  25. Offline

    pie_flavor

    @adi0115 Okay. Fixed again. This time everything should work. Redownload, you can keep the config if you want to
     
Thread Status:
Not open for further replies.

Share This Page