Ok I want a Player to do like /slime and it adds them to an event like this Code:java @EventHandler public void OnMoveEvent(PlayerMoveEvent e){ Player p = e.getPlayer(); 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.
Add the player to an ArrayList, and check if the ArrayList contains the player when execcuting the event.