Filled AppleDrop

Discussion in 'Archived: Plugin Requests' started by BearstudioMC, Jul 5, 2014.

  1. Offline

    BearstudioMC

    Plugin category: PvP

    Suggested name: FFApple

    What I want: So when a player kills another player a normal god apple (322 not 322:1) drops onto the floor and when the player walks through it, Like they are going to pick it up, It gives them Regen 2 for 30 seconds and they do NOT get the apple in the inventory.

    (You can find a plugin like this on zincbox.net and in the ffa server)


    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin.

    When I'd like it by: ASAP
     
  2. Offline

    Onlineids

  3. Offline

    BearstudioMC

  4. Offline

    izarooni

    Apple gets removed?
     
  5. Offline

    BearstudioMC

    Yeah like, Once they walk over it it disapears
     
  6. Offline

    izarooni

    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 2, 2016
    fromgate likes this.
  7. Offline

    BearstudioMC

  8. Offline

    BearstudioMC

    Yo, On the server I put this plugin on there's a 1v1 arena and I dont want apples to drop in it. Can you make something like a worldguard flag like this:

    /rg flag <Regoin Name> apple deny/allow


    However by default its on allow.
     
  9. Offline

    izarooni

  10. Offline

    BearstudioMC

  11. Offline

    BearstudioMC

  12. Offline

    Onlineids

  13. Offline

    izarooni

  14. Offline

    BearstudioMC

  15. Offline

    izarooni

    BearstudioMC
    I'm not sure if it's possible to add custom WorldGuard flags atm.
    Anybody know how?
     
  16. Offline

    Onlineids

    izarooni Just make a command to define a region as apple drop or whatever, then later check if they are in said region.
     
  17. Offline

    izarooni

    BearstudioMC
    <Edit by Moderator: Redacted mediafire url>
    Sorry it took a while. I just copied some code from a plugin of mine and put it in here.
    To make selections you need a wand using /ffapple wand then make two selections using left click and right click (or whatever you have those set to) in a square shape around your arena and use /ffapple create <name>
    There are no permissions for these commands as it's only available for OPs on your server. If you want anything changed or removed just tell me.
     
    Last edited by a moderator: Nov 2, 2016
  18. Offline

    Onlineids

    izarooni You should have at leasted provided credit for the classes you used...
     
  19. Offline

    izarooni

    Onlineids
    Classes? I only used one and it's from desht and KingFaris10 so thanks to them. It helps alot than looping through 3 axis

    edit: KingFaris11 ? I don't even know. The comment says 10
     
  20. Offline

    BearstudioMC

    Everyone thanks soooo much!

    One small problem. When i type /ffapple create <Name> it says,
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  21. Offline

    timtower Administrator Administrator Moderator

    BearstudioMC Please post the error log from the console
     
  22. Offline

    BearstudioMC

    [22:40:05] [Server thread/INFO]: bearstudio issued server command: /ffapple create DesertBuild
    [22:40:05] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ffapple' in plugin FFApple v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:175) ~[minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:683) ~[minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:952) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    Caused by: java.lang.NullPointerException
    at ffa.main.Core.onCommand(Core.java:129) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
     
  23. Offline

    Onlineids

  24. Offline

    BearstudioMC

    Yes, I used the /ffapple wand and selected the 2 points.
     
  25. Offline

    BearstudioMC

  26. Offline

    izarooni

  27. Offline

    BearstudioMC

  28. Offline

    izarooni

  29. Offline

    BearstudioMC

    @izarooni not what i know of.
     
  30. Offline

    izarooni

    BearstudioMC
    You never mentioend that. :p
    I changed some things. <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 2, 2016

Share This Page