Kit PvP Main Class Events Help!

Discussion in 'Plugin Development' started by Matroix7, Aug 2, 2014.

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

    Matroix7

    This is my code so far
    Code:java
    1. package net.fadenetwork.fadekits;
    2.  
    3. import java.util.ArrayList;
    4.  
    5. import org.bukkit.plugin.java.JavaPlugin;
    6.  
    7. public class Main extends JavaPlugin {
    8. private Events Events = new Events();
    9. ArrayList<String> Fiserman = new ArrayList<String>();
    10. ArrayList<String> Archer = new ArrayList<String>();
    11. ArrayList<String> PvP = new ArrayList<String>();
    12. ArrayList<String> kitused = new ArrayList<String>();
    13. ArrayList<String> Kangaroo = new ArrayList<String>();
    14.  
    15.  
    16. public void onEnable() {
    17. commands();
    18. }
    19. public void commands() {
    20. getCommand("PvP").setExecutor(new PvP());
    21. getCommand("Archer").setExecutor(new Archer());
    22. getCommand("Kangaroo").setExecutor(new Kangaroo());
    23. }
    24.  
    25. public void events() {
    26.  
    27.  
    28.  
    29. }
    30. }
    31.  

    I only need help with the events part of my class! I've tried everything! I tried looking it up, youtube videos but nothing! Please help!
     
  2. Offline

    The Fancy Whale

    Please explain more about what the issue is.
     
  3. Offline

    Matroix7

    I need the code for the events like in (Events part) that code there is outdated and I need the updated code
     
  4. Offline

    jollie000l

    It seems to me as if you are trying to follow that tutorial. We cant just give out code to you without knowing what you want. If you are truly advanced enough for a KitPvP plugin, the events should be easy.
     
  5. Offline

    Matroix7

    No I am not following a tutorial... I was just seeing for the events code... Also I haven't done this in months so im rusty...
     
  6. Offline

    Necrodoom

    Matroix7 and what events do you need?
     
  7. Offline

    Matroix7

  8. Offline

    Necrodoom

    Matroix7 what do you want to do exactly? The plugin will not magically work if you just register a few events.
     
  9. What, you want people to get a jump boost when they do "/kangaroo"? Is that it? That's my best guess.
     
  10. Offline

    TehVoyager

    Matroix7
    Make a separate listener class, as you have it now you would be putting your events in a method. Also try using a Hashmap for the kits that stores UUIDs and maybe an enumeration of kits.
     
  11. Offline

    Matroix7

    TehVoyager I have an events class and and all but I want the updated code for the pluginmanager pm = etc

    xYourFreindx Yes I do!

    Never mind! I don't need help now I got the code!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
Thread Status:
Not open for further replies.

Share This Page