Plugin Request Enderchest keys

Discussion in 'Plugin Help/Development/Requests' started by FlashyPotato, Jul 19, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    FlashyPotato

    Plugin Category: Fun, I guess.

    Suggested Name: Risk

    What I want:
    When a player dies in PVP he/she has a 10% chance of dropping a "key". Once the killer picks up the key and uses it on an enderchest, he/she has a one-time access to the victims echest. Once they exit the victims echest after looting to their hearts desire, the key breaks, and they no longer have access to that person's enderchest.

    EDIT: I also want opening enderchests disabled for 30 seconds after death, to prevent people from grabbing out all their stuff. I want to give the victor of the fight a chance to loot, so 30 seconds or so after dying. After that they're able to open their enderchest.

    I also want a broadcasted message in chat when a players enderchest is opened.

    Ex. "[Member] Potato has opened [Member] Apple's enderchest!!!"

    I want the person with the key to be able to open their victims echest even if he/she is offline. So something that saves every players inventory and gives access to their enderchest even when they're offline is something that I'm also looking for in this plugin.

    Ideas for commands:
    /risk enable
    /risk disable
    /risk set [0-100(%)]


    Ideas for permissions:
    I don't know. I want confirmation on whether or not someone can create this before thinking about permission nodes.

    When I'd like it by:
    If it takes time, by all means, take your time, but I'd like it to take no later than a week.

    If someone could create something like this, I'd be forever grateful :D!
     
    Last edited: Jul 22, 2015
  2. Offline

    timsmans

    I am now buzzy with it
    it wil me done somewhere tomorow
     
    Eos likes this.
  3. Offline

    Eos

    Hmm I could probably do this. But what does /Risk set mean? The drop rate?
     
  4. Offline

    FlashyPotato

    Yeah. For the idea I have in mind, I want the default drop rate for the keys to be set to 10%. But, yes, that command is for setting/changing the drop rate.
     
  5. Offline

    bwfcwalshy Retired Staff

  6. Offline

    Eos

    Alright
     
  7. Offline

    FlashyPotato

    Alright. I'll be keeping in touch. Thanks guys :D
     
  8. Offline

    Eos

    @FlashyPotato
    I'm almost done i'll most likely be finished later tonight est time. All I have to do is add the commands and save the user's enderchest.
     
    Last edited: Jul 20, 2015
  9. Offline

    FlashyPotato

    @Eos Alright. I hope what it is you're doing is what I have in mind. Sorry I didn't recommend any permission nodes. I think I can leave that up to you though ;).

    Btw, the "key" that I mentioned... I'd like it to display as an enchanted crate key. If that's not too much to ask for, please and thank you.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 11, 2016
  10. Offline

    Eos

    I ran into a problem which made me have to recode everything, but I AM going to get this done for.
    and alright. This plugin is a bit of a challenge.
     
  11. Offline

    FlashyPotato

    Thank you. I appreciate your efforts.
     
  12. Offline

    bwfcwalshy Retired Staff

    @FlashyPotato How do they look in with the key? Right click the key? Click the enderchest?
     
  13. Offline

    FlashyPotato

    @bwfcwalshy They drop an enchanted tripwire hook (the key) and right click it on an enderchest. Any enderchest. And then it'll open up the victims enderchest whether they're online or offline. For 30 seconds after his/her death the victim can't open an enderchest.

    Hope I clarified everything :D
     
  14. Offline

    bwfcwalshy Retired Staff

    @FlashyPotato Ok, I think I will make this. It's a pretty nice idea.
     
  15. Offline

    bingoberraz

    When will this be useful?? People will just not use enderchests :eek:
     
  16. Offline

    FlashyPotato

    Enderchests are crucial on factions servers. People almost never store their most precious valuables at their base/home.
     
  17. Offline

    bwfcwalshy Retired Staff

    @FlashyPotato Done.

    DOWNLOAD

    Commands:
    /risk percentage - Get the percentage of dropping a head
    /risk set (percentage) - Set the percentage to drop a head

    Permissions:
    risk.command

    Messages are also configurable.
     
  18. Offline

    FlashyPotato

    "An internal error has occurred while attempting to perform this command."
    Is what I get when I do /risk. I've tested it on two different servers. Help please, Mr.Walshy.
     
  19. Offline

    bwfcwalshy Retired Staff

    mine-care likes this.
  20. Offline

    mine-care

    @FlashyPotato Indeed the error would help a lot.
    As we have been testing it it worked flawlessly! (it was fun spaming @bwfcwalshy's enderchest with useless stuff! :D) and also using the "testing purposes" cover to kill him with a OP overenchanted sword!
     
    bwfcwalshy likes this.
  21. Offline

    FlashyPotato

    @bwfcwalshy Okay. When the server's booting up this is what I see:

    [01:51:24 INFO]: [Risk] Enabling Risk v1.0
    [01:51:24 ERROR]: Error occurred while enabling Risk v1.0 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/bwfcwalshy/walshyutil/cooldown/CooldownManag
    er
    at com.bwfcwalshy.risk.Events.<init>(Events.java:32) ~[?:?]
    at com.bwfcwalshy.risk.Main.onEnable(Main.java:14) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[s
    pigot.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:340) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:405) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.jav
    a:356) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.
    java:316) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:4
    18) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:3
    82) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:3
    37) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.jav
    a:257) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java
    :528) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.ClassNotFoundException: com.bwfcwalshy.walshyutil.cooldown.
    CooldownManager
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_45]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:101) ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:86) ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_45]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_45]
    ... 13 more
    [01:51:24 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [01:51:24 INFO]: Done (5.407s)! For help, type "help" or "?"

    And when I run the command /risk, this is what comes up:

    [01:51:53 INFO]: FlashyPotato issued server command: /risk
    [01:51:53 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'risk
    ' in plugin Risk v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spi
    got.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:14
    1) ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServe
    r.java:646) ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerCon
    nection.java:1135) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java
    :970) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java
    :45) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java
    :1) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:1
    3) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [
    ?:1.8.0_45]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_45]
    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:60) [spigot.jar
    :git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:7
    18) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:3
    68) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:6
    57) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java
    :560) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.NoClassDefFoundError: com/bwfcwalshy/walshyutil/colour/Colo
    rs
    at com.bwfcwalshy.risk.Commands.onCommand(Commands.java:52) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spi
    got.jar:git-Spigot-17fce80-529e4cd]
    ... 15 more
    Caused by: java.lang.ClassNotFoundException: com.bwfcwalshy.walshyutil.colour.Co
    lors
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_45]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:101) ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:86) ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_45]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_45]
    at com.bwfcwalshy.risk.Commands.onCommand(Commands.java:52) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spi
    got.jar:git-Spigot-17fce80-529e4cd]
    ... 15 more
    >
     
    Last edited: Jul 26, 2015
  22. Offline

    bwfcwalshy Retired Staff

    @FlashyPotato 1. Please put that in [code][/code] tags
    2. I forgot I made this depend on WalshyUtil hold on.

    EDIT: Download is here
     
    Last edited: Jul 26, 2015
  23. Offline

    FlashyPotato

    @bwfcwalshy Everything works and it's great! Is there a way to edit the enderchest cooldown upon death? It says 12 seconds and I want it to be 30 seconds. :p

    Other than that, it's amazing. Thanks !
     
  24. Offline

    bwfcwalshy Retired Staff

    It is 30 :p You must have clicked it 18 seconds after you died. I can add a configurable time if you want.
     
Thread Status:
Not open for further replies.

Share This Page