setFoodLevel() help

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

  1. Offline

    Whatshiywl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ArrayList?
  3. Offline

    Whatshiywl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Theodossis what's an array list? D: sorry i just started dealing with plugins -.-
  4. Offline

    sayaad

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @sayaad right i think i got the idea. but how would that solve this problem? D:

Share This Page