Filled [HUB] PvPSword | Better Explanation

Discussion in 'Plugin Requests' started by GrandmaJam, Nov 13, 2014.

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

    GrandmaJam

    Plugin category: Fun

    Suggested name: HubPvP

    What I want: If a player is holding an Iron Sword in their hotbar they will be able to damage other players, if they are not they will not be able to pvp / damage others.
    When a player switches from his Iron Sword to another slot it to send him/her a message with a countdown of 5 seconds.

    Examples:
    You have entered HubPvP mode.
    Leaving HubPvP mode in 5 seconds.
    Leaving HubPvP mode in 4 seconds.
    Leaving HubPvP mode in 3 seconds.
    Leaving HubPvP mode in 2 seconds.
    Leaving HubPvP mode in 1 second.
    You have left HubPvP mode.

    Ideas for commands: No commands needed

    Ideas for permissions: No permissions needed

    When I'd like it by: As soon as possible!
     
    Last edited by a moderator: Jan 17, 2015
    ChipDev likes this.
  2. Offline

    JTGhawk137

    I will work on this <3
     
    GrandmaJam likes this.
  3. Offline

    GrandmaJam

  4. Offline

    GhastSlayner

    Did you get this from McBrawl?
     
  5. Offline

    GrandmaJam

    I got the idea from Zincbox and The Nexus (BajanCanadian's Server).
     
  6. Offline

    JTGhawk137

    Sorry I had to be so long, I had a lot of school stuff, Ill have it done by the end of the weekend :D (Hopefully)

    I have it almost all done, I just am having troubles doing the player getting damaged health thing and the countdown until the player is out of pvp mode. The only reason I am having trouble with the player health thingy is because the event I am using won't allow Player p = e.getPlayer(); But instead makes me due Entity p = e.getEntity(); Which also doesn't have a getHealth either... ill figure it out xD

    EDIT by Timtower: merged posts
     
    GrandmaJam likes this.
  7. Offline

    Googlelover1234

    JTGhawk137
    You can get the Entity, and check if its a player, then you can cast Player to the Entity.
     
    GrandmaJam likes this.
  8. Offline

    JTGhawk137

    Yeah, I must've been not thinking right when I made this xD
     
    GrandmaJam likes this.
  9. Offline

    GrandmaJam

  10. Offline

    GrandmaJam

  11. Offline

    GrandmaJam

  12. Offline

    GrandmaJam

  13. Offline

    GrandmaJam

  14. Offline

    GrandmaJam

  15. Offline

    alexlab963

    I know that feeling bro

    bump
     
    GrandmaJam likes this.
  16. Offline

    GrandmaJam

    Bump
     
    Last edited by a moderator: Jan 17, 2015
  17. Offline

    GrandmaJam

  18. Offline

    GrandmaJam

  19. Offline

    MoejoeAw44

    I found a thread like this on here, and there was a download. I can supply you with the download if you would like?

    EDIT: Just tried it, didn't work. Decompiled it, looks un finished.
     
    GrandmaJam likes this.
  20. Offline

    XgXXSnipz

  21. Offline

    GrandmaJam

    Do you think that you can re-make it for me?
     
  22. Offline

    Permeer

    @GrandmaJam Maybe i can do this , if i get the eclipse on my notbook , yes.
     
    GrandmaJam likes this.
  23. Offline

    GrandmaJam

    Thanks so much
     
    ChipDev likes this.
  24. Offline

    ChipDev

    I'll try. Tahg me if no one else does :)
     
    GrandmaJam likes this.
  25. Offline

    Permeer

    Last edited: Jan 24, 2015
    ChipDev and GrandmaJam like this.
  26. Offline

    MoejoeAw44

    @XgXXSnipz very very very simple. I can hardly code actually. But like most others, I can read and understand a lot of code.
     
  27. Offline

    GrandmaJam

Thread Status:
Not open for further replies.

Share This Page