Currency Party Bomb

Discussion in 'Archived: Plugin Requests' started by MinerMovies, Aug 30, 2014.

  1. Offline

    MinerMovies

    You know the Gem/Coin party bombs on Mineplex? If not here's a picture:
    [​IMG]

    So I would like one where if you do /currencyparty (Everyone has the permission), it gives you a sunflower head (ID 175) that is named "&e&lPyx Bomb", and the lore is
    "&6&lCosts 2000 pyxes
    [newline]&6&lper use."

    When you right click it, it says:
    "&e&l<Username> has thrown a Pyx Bomb! Find it to get some pyxes!"
    it deducts 2000 currency from Vault, and then throws a Gold block out, which spews the sunflower heads for a bit, and if you pick them up, it doesn't go into your inventory, it gives you 20 currency through Vault. It also has Yellow/Orange firework particles around it, as seen above.
    If you type /currencyparty again, it removes it from your inventory.

    Also, if you don't have 2000 currency to pay for the Pyx Bomb, it will not work and say:
    "&e&lMinepyx &c➜ &4&lYou don't have enough Pyxes to drop a bomb!"
    and it will remove the bomb from your inventory.


    Thanks!
    P.S.
    If you could include the source, that would be AWESOME!
     
  2. Offline

    Sabersek

    MinerMovies I like this idea! If anyone makes it, I will definitely download it :p
    I recommend that they put a config where you can customise the messages incase you ever change currencies (at Least thats what I plan to do)
     
  3. Offline

    MinerMovies

    Yeah, that would be cool. I asked for the source so I could edit it, and I'm sure, if someone develops it, that you can download the source, change the messages, recompile it, and bang! ;)
     
  4. Offline

    ldrpc

    I'm coding it right now but i need to know something first, will this be used on a server HUB? or in a survival/factions server?
     
  5. Offline

    Sabersek

  6. Offline

    MinerMovies

    It will be used in a hub, with a currency (working with vault) going through MySQL. It's a Minigames server just like mineplex!

    Thanks SO much for coding it!
     
  7. Offline

    ldrpc

    Done! Feel free to message me for any edits you want to make!
    [Link]
     
  8. Offline

    Jaaakee224

    ldrpc Just tested, doesn't seem to work.
     
  9. Offline

    ldrpc

    Jaaakee224 It seems to work on my server, just going to post how it works:

    • It REQUIRES Vault, if you don't have Vault installed on your server it is simply just not going to work
    • To get the Pyx Bomb you must perform the command "currencyparty", same thing to remove it from your inventory
    • Before right clicking it you must have a 2k+ balance on vault, it will tell you if you don't
    • It will only let you have 1 Pyx Bomb on your server at a time (For lag issues)
    Hope this helped you or fixed your problem!
     
  10. Offline

    Sabersek

    Hi ldrpc Could you add these in the config pls? That would be awesome! item id for the item of the bomb, configurable messages, configurable item name, configurable item slot (in your hotbar), configurable item lore, and an option of whether or not you want the limit (of 1 at a time) on or off, configureable price,configureable colour of firework, time the fireworks go for, the item id for the item you want to come out of the bomb, And also, I tried everything you did and it didn't work :( If you're wondering what error im getting, the error is:


    Code:
    Error occurred while enabling Pyx v1.0 (Is it up to date?)
    java.lang.NullPointerException
        at me.ldrpc.uhc.uhc.onEnable(uhc.java:60) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:455) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:389) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:352) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:326) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:282) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
        at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks]
     
  11. Offline

    ldrpc

  12. Offline

    Sabersek

    ldrpc Still doesn't work :( Still shows the exact same error :/
     
  13. Offline

    ldrpc

    Sabersek my server gives me that exact same error but the plugin still works fine, also make sure you have some type of economy system like essentials
     

Share This Page