CraftPlayer{name=lpjz2}... WTF

Discussion in 'Plugin Development' started by lpjz2, Mar 25, 2011.

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

    lpjz2

    ok so i use this...

    Code:
     plugin.getServer().broadcastMessage(player2 + "Loves Lpjz2");
    
    which in theory if i called the event broadcast the message "Lpjz2 Loves Lpjz2".
    but it Broadcasts: "CraftPlayer{name=lpjz2} Loves Lpjz2"

    Any idea on how to fix this?
     
  2. Offline

    cjc343

    .getName() probably.
     
  3. Offline

    lpjz2

    OMG ofcorce! had blank moment, lol thanks, sorry for the STUPID post!
     
Thread Status:
Not open for further replies.

Share This Page