Solved blocksbroke adding mine and other players blocks

Discussion in 'Spigot Plugin Help' started by ICBPLayz, Jun 14, 2019 at 10:32 PM.

  1. I have made some code that works, but adds all the players blocksmined into one :/
    Code (Text):
    private int blocksbroke;
    Code (Text):
    if(plugin.getConfig().getBoolean("ActionBarBlocksMined")) {
                if(blocksbroke == 0) {
                    blocksbroke = 1;
                    ActionBarAPI.sendActionBar(player, Utils.chat(plugin.getConfig().getString("ActionBarMessage") + (blocksbroke), 1));
                } else {
                    ActionBarAPI.sendActionBar(player, Utils.chat(plugin.getConfig().getString("ActionBarMessage") + (blocksbroke++), 1));
                }
            }
    Pleaes Help, Thanks
     

Share This Page