comparing lores

Discussion in 'Plugin Development' started by welsar55, Mar 28, 2013.

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

    welsar55

    i have a magic item that people craft but i dont want people to be able to use the regular version and this line does not work what do i do?
    Code:
    if(inhandmeta.getLore() == luckystick.getItemMeta().getLore())
     
  2. Offline

    raGan.

    Because getLore() returns array. You can't compare arrays with "==".
     
Thread Status:
Not open for further replies.

Share This Page