Event Help?

Discussion in 'Plugin Development' started by trikxgaming, Apr 18, 2014.

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

    trikxgaming

    Ok I want a Player to do like /slime and it adds them to an event like this
    Code:java
    1. @EventHandler
    2. public void OnMoveEvent(PlayerMoveEvent e){
    3. Player p = e.getPlayer();
    4. p.playSound(p.getLocation(), Sound.SLIME_WALK, 10.0F, 10);


    But I only want that command to have acssess to that event. So like if I did /pvp it wouldnt use that event.
     
  2. Offline

    Glumpz

    trikxgaming I would recommend reading up on much more Java programming syntax's and/or tutorials.
     
  3. Offline

    LarsNitro

    Add the player to an ArrayList, and check if the ArrayList contains the player when execcuting the event.
     
Thread Status:
Not open for further replies.

Share This Page