Solved Use player name from PlayerKickEvent in another method.

Discussion in 'Plugin Development' started by dan14941, Oct 7, 2014.

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

    dan14941

    Ok what i want to to use use the player name from a PlayerKickEvent in a seperate method so i can compare the names. Here is a paste of what i want: http://pastebin.com/0gEjUw82
    Its probably very simple and i cant think of it :/
     
  2. Offline

    teej107

    [​IMG]
     
    Born2PvP and es359 like this.
  3. Offline

    AronTheGamer

    thisAndThatMethod(e.getPlayer().getName());
     
  4. Offline

    fireblast709

    dan14941
    • Your code doesn't make sense. If the player gets kicked, how can the second part even get fired...
    • A Material named X3003?
    • Why Player#toString()? Use their UUID.
    • Calling getPlayer() on a player is redundant
    • Why are you concatenating the plugin in the logged message?
     
  5. Offline

    AdamQpzm

    He's hoping it will stop the block from being placed
    He's using a mod.
     
    es359 likes this.
Thread Status:
Not open for further replies.

Share This Page