setFoodLevel() help

Discussion in 'Plugin Development' started by Whatshiywl, Jun 30, 2012.

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

    Whatshiywl

    So I'v got a plugin that sets the player's FoodLevel when they move withing a region. I use player.setFoodLevel(int arg) for that. however, it seems that when the player is outside this region, his food level freezes and even when i remove that plugin completly, the player's food level remains unchanged, no matter how much i walk/sprint/jump. do i have to issue any kind of "stop" for the setFoodLevel()? because it now seems to be the only way the player food level is changing. If code or any extra info is needed, i'll be happy to give it.

    thanks in advance! \o/
     
  2. Offline

    Theodossis

    ArrayList?
     
  3. Offline

    Whatshiywl

    @Theodossis what's an array list? D: sorry i just started dealing with plugins -.-
     
  4. Offline

    sayaad

    ArrayList

    It is basically one variable that holds numerous other variables. In other words, its a LIST of variables in a particular ARRAY order.
     
  5. Offline

    Whatshiywl

    @sayaad right i think i got the idea. but how would that solve this problem? D:
     
Thread Status:
Not open for further replies.

Share This Page