PotionSplashEvent help

Discussion in 'Plugin Development' started by Tzipi, Jul 22, 2020.

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

    Tzipi

    Ok so you know how there's a e.getplayer();
    so apparently in this event there isn't
    So how do i detect the player?
    becuase I wanna do something like
    if(!(e.getplayer() instanceof Player)) {
    return;
    }
    thx :D
     
  2. Offline

    timtower Moderator Moderator

  3. Offline

    Tzipi

    Can you give me an example?
    @timtower
    I'm pretty new to coding
     
  4. Offline

    timtower Moderator Moderator

    @Tzipi Do you know how to loop over a list?
    If so: loop over the entities that the method returns.
     
  5. Offline

    Tzipi

    Ye, i did it thx <3
     
Thread Status:
Not open for further replies.

Share This Page