JSONAPI Config

Discussion in 'Bukkit Help' started by edocsyl, Jan 25, 2012.

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

    edocsyl

    http://forums.bukkit.org/threads/ad...i-for-controlling-a-server-1597.14270/page-23

    I cant set a password so i don't get any data from the Plugin.. What's wrong?

    PHP:
    <?php
    require('JSONAPI.php');
     
    $api = new JSONAPI("localhost"20059"admin123""demo"""); // host/ip, port, username, password, salt
    var_dump($api->call("getPlayerLimit"));
    ?>
    Code:
    method-whitelist:
    - getPlayer
    logins:
        usernameGoesHere: admin123
    options:
        startup-delay: 2000
        port: 20059
        ip-whitelist: []
        log-to-console: true
        log-to-file: false
        salt:
    
    -.-

    bumb

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 23, 2016
  2. Offline

    brinaq

    Same here. I have no line to put a password. I tried adding "passwordGoesHere" underneath the "usernameGoesHere" but didn't work.
     
  3. Offline

    jannlukasmeier

    Here is an example:
    logins:
    username: password

    you have to put your username and then after the ":" the password
     
  4. Offline

    Iroh

    You have your used name where the psw should go replace the text usernamegoeshere with your user name and admin123 with the password.
     
Thread Status:
Not open for further replies.

Share This Page