"String received less than zero"

Discussion in 'Plugin Development' started by Rprrr, Dec 25, 2012.

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

    Rprrr

    Hi,

    I've made a plugin, and it opens custom inventories filled with presents for players.

    For some this is throwing now errors, others get kicked instantly when the inventory is opened for them.. They then get the kick message:

    "string received less than zero"

    Why is this happening? I really don't know how to solve this..
     
  2. what do you use as title of you're dialog, or does bukkit dont give you're option for that?
     
  3. Offline

    Rprrr

    ferrybig
    You mean the title of the inventory screen?
    Then I think I know why this is happening.. I'm using the following as title:
    Code:
    From Santa, for <player's name>
    And I realised: only players with the long names got this error..

    By the way, it was actually a string 34 > 32 error. :l Well, thanks for your help, I'm going to try a shorter title. :D
     
  4. Offline

    fireblast709

    Rprrr a player's name is 16 characters long, and your string is 16 characters long. How can the title be 34 characters?
     
  5. Offline

    Rprrr

    fireblast709
    Ehm, that's a good question..
    I have no idea what the actual error was, since I didn't get it myself. But shortening the title seemed to work.
     
  6. Offline

    fireblast709

    Rprrr are you using .getName() or .getDisplayName()?
     
  7. Offline

    Rprrr

Thread Status:
Not open for further replies.

Share This Page