null [remove please]

Discussion in 'Spigot Plugin Development' started by pas5w0rd, May 7, 2017.

Thread Status:
Not open for further replies.
  1. moderator please remove
    null
     
    #1 pas5w0rd, May 7, 2017
    Last edited: May 7, 2017
    • You could save yourself a lot of indentation by using
      Code (Java):
      if (!statement) {
          return;
      }
      instead of [
      CODE=JAVA]if (statement) {
      // code
      }[/Code]
    • Check if the Lore has even one entry
    • Keep an instance of ItemMeta instead of continuously calling ItemStack::getItemMeta() once you know it has meta, this avoids creating a lot of unnecessary instances (it creates one every call)
    • We would need more code to figure this one out, since it likely is some registration related user error.
     
Thread Status:
Not open for further replies.