Problem with the config, help pls...

Discussion in 'Plugin Development' started by oran10majar, Nov 28, 2013.

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

    oran10majar

    I have problem with the coinfig:


    if(cmd.getName().equalsIgnoreCase("setcoins")){

    if(player.isOp()){

    if(args.length == 2){




    getConfig().set(args[0]+"-coins", args[1]);

    saveConfig();
    player.sendMessage(fi+ChatColor.BLUE+"You Set The Coins To "+ChatColor.YELLOW+args[0]+" "+args[1]+ChatColor.BLUE+" Coins!");

    }else{

    player.sendMessage(fi+ChatColor.BLUE+"Type /setcoins <Player> <Namber>!");


    }

    }else{
    player.sendMessage(nope);

    }
    }



    oran10majar-coins: '1234'

    Its create '----' because of this its doest work...

    How I solves this problem?
     
  2. Offline

    AoH_Ruthless

    oran10majar
    We need code to help you.
    Also, post your stacktrace :)
     
  3. Offline

    oran10majar

    Its the code
     
  4. Offline

    AoH_Ruthless

    oran10majar
    I'm saying paste your code and your config.yml.
    Tahg me (use AoH_Ruthless) in your post or I may not reply.

    EDIT: I didn't see you pasted the code.
    Instead of editing your post, make a new one so it's easier to see that you pasted it. And please use the code function for readability.
     
  5. Offline

    oran10majar

    I new, I dont know how to do it...
     
Thread Status:
Not open for further replies.

Share This Page