Util *BROKEN* *PLEASE READ* Create a Minigame!

Discussion in 'Resources' started by JPG2000, Nov 11, 2013.

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

    Slideroller

  2. Offline

    ArthurMaker

    OMG THANKS, BRO!

    I used to look for ways to do arenas like this method: simple and fast! I did countdowns with scoreboards with it and much more! Thank you :D
     
  3. Offline

    lewysryan

    ArthurMaker could you help me with the config // creation of the arena ?
     
  4. Offline

    ArthurMaker

    lewysryan
    I don't know how to explain it, unfortunatelly... But you can check out some videos on Youtube :p
    http://www.youtube.com/user/TheBCBroz -> this is a great channel for ya ;)

    To create an arena, just type "ArenaManager.getManager().createArena(arenaName, joinLocation, startLocation, endLocation, maxPlayers);".

    I edited it to put "minPlayers", multiples spawns, etc. But those things are easy ;P
    This is the easily method I ever seen for arenas! It is just amazing.
     
  5. Offline

    xTrollxDudex

    If you don't know yet, BCBroz is a horrible channel... They probably tried to learn java and code at the same time and... Well, turned out to be pretty messy.
     
    DogeDev and spoljo666 like this.
  6. Offline

    PieMan456

    JPG2000
    Hey how would I make it so I set multiple spawn points and only one person is spawned at that one and the player that spawns there is a random player in the game?
     
  7. Offline

    JPG2000

    PieMan456 Add fields (Location objects) to the Arena class, then put them all in an array list, loop through them, then add a player.
     
  8. Offline

    CookieGamer100

    JPG2000 is loadArenas() working?
     
  9. Offline

    lewysryan

    im really stuck JPG2000 i need help with the config? should a config file be made? how would i create that arena with:

    ArenaManager.getManager().createArena(arenaName, joinLocation, startLocation, endLocation, maxPlayers);"

    is this right?


    FileConfiguration fc = Bukkit.getServer().getPluginManager().getPlugin("explosivearrowpvp").getConfig();

    i need this for my first plugin to be done :( and the others i plan to make.
     
    PieMan456 likes this.
  10. Offline

    PieMan456

    lewysryan
    I need help with this too I don't know how to use config files either.
     
  11. Offline

    lewysryan

    PieMan456 i cant wait until JPG2000 updates it showing us noobs how to do it :/ stupid PS4 :p
     
  12. Offline

    PieMan456

    JPG2000 likes this.
  13. Offline

    JPG2000

    PieMan456 I have almost no time lately. I've been extremely busy. I would really like to do it, but like I said, I have a lot of other things to do.

    Would anyone (a helper) like to volunteer to awnser some thread questions, and maybe make a add arena method? It would help me a lot, and it'll keep you busy :p
     
  14. Offline

    lewysryan

    JPG2000 looks like @ArthurMaker has done it. he dont seem to want to explain it though :/
     
  15. Offline

    PieMan456

  16. Offline

    lewysryan

    PieMan456 we are @ArthurMaker !!!! still trying to do this :/ my plugin will never be done :( guess im going back to learning more java. ill try to figure it out i hope :confused:
     
  17. Offline

    ArthurMaker

    This was my answer for the PieMan:

     
  18. Offline

    PieMan456

    lewysryan
    Look up at arhthurmaker's post.
     
  19. Offline

    PieMan456

    JPG2000
    How would I make a command that sets the join, start, and end location?
     
  20. Offline

    JPG2000

    PieMan456

    Dude, read the end of the tutorial, I have a whole section on commands:
     
  21. Offline

    PieMan456

    JPG2000
    Did we make a setLocations method?
     
  22. Offline

    JPG2000

  23. Offline

    PieMan456

    JPG2000
    Do I do this?
    Code:java
    1. Arena.arenaObjects.set(index, element);
     
  24. Offline

    JPG2000

    PieMan456 No.

    In the actually Arena object, we can set each location.

    Get an arena object you want, and you can set the locations:
    Code:
    some_arena_object.setJoinLocation(location);
    And so on...
     
  25. Offline

    PieMan456

    JPG2000
    Do I make the arena object because I just have an arraylist called arenaObjects from your tutorial.
     
  26. Offline

    JPG2000

    PieMan456 No.

    For every arena you have, there is 1 arena object.

    Set the locations in the arena object you want; and you determine which object you want.

    You could make it from a command, and then you can do:
    Code:
    ArenaManager.getManager().getArena(args[0]);
    And that would return an arena with the first argument in a command. Then with that arena you can then set the Location.


    Also, not to be rude, but it would be worth your time to check out some object tutorials in java, it would help a lot, and you would understand this a little more.
     
  27. Offline

    PieMan456

    JPG2000
    Ok I will check out some object tuts because what you are saying is still very confusing to me. Thanks for helping me though.
     
  28. Offline

    JPG2000

    PieMan456 No problem. Feel free to ask questions, Im here :)
     
  29. Offline

    ajs333

    JPG2000
    Could this method be used to create a mini game like LMS (Last Man Standing) for a KitPvP server? I was just skimming the code and it seemed like I don't need all of it like the Load an arena form the config...
     
  30. Offline

    JPG2000

    ajs333 Um, you need it the load arenas method. If you didn't, arenas wouldn't last through reloads:

    I make an Arena 'Pie'
    */reload*
    WHERE's PIE?!?!?!
     
Thread Status:
Not open for further replies.

Share This Page