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


    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


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


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


    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


  7. Offline


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


    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


    @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


    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


    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


    @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


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


    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.


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


    Messages are also configurable.
  18. Offline


    "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


    @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


    @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
    at com.bwfcwalshy.risk.Events.<init>( ~[?:?]
    at com.bwfcwalshy.risk.Main.onEnable( ~[?:?]
    at ~[s
    .java:340) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage [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(
    18) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.k(
    82) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.a(
    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]
    :528) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at Source) [?:1.8.0_45]
    Caused by: java.lang.ClassNotFoundException: com.bwfcwalshy.walshyutil.cooldown.
    at Source) ~[?:1.8.0_45]
    java:101) ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    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( ~[spi
    at org.bukkit.command.SimpleCommandMap.dispatch(
    1) ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServe ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerCon [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(
    :970) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(
    :45) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(
    :1) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$
    3) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at java.util.concurrent.Executors$ Source) [
    at Source) [?:1.8.0_45]
    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:60) [spigot.jar
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(
    18) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(
    68) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(
    57) [spigot.jar:git-Spigot-17fce80-529e4cd]
    :560) [spigot.jar:git-Spigot-17fce80-529e4cd]
    at Source) [?:1.8.0_45]
    Caused by: java.lang.NoClassDefFoundError: com/bwfcwalshy/walshyutil/colour/Colo
    at com.bwfcwalshy.risk.Commands.onCommand( ~[?:?]
    at org.bukkit.command.PluginCommand.execute( ~[spi
    ... 15 more
    Caused by: java.lang.ClassNotFoundException: com.bwfcwalshy.walshyutil.colour.Co
    at Source) ~[?:1.8.0_45]
    java:101) ~[spigot.jar:git-Spigot-17fce80-529e4cd]
    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( ~[?:?]
    at org.bukkit.command.PluginCommand.execute( ~[spi
    ... 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


    @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