Can't store reports

Discussion in 'Plugin Development' started by SneakyBruh, Sep 30, 2017.

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

    SneakyBruh

    I'm struggling to store reports in a config file
    i try to use cfg.set(target.getName() + "." + "Reported By: " + sender.getName() + "." + "For: " + message);
    but instead it makes:
    SneakyBruh:
    'Reported By: SneakyBruh':
    'For: hi 123 ':
    and when they are reported again it turns into
    SneakyBruh:
    'Reported By: SneakyBruh':
    'For: hi 123 ':
    'For: bye 21312 '
     
  2. Offline

    timtower Administrator Administrator Moderator

    @SneakyBruh config.set uses a key valuepair, you just gave a key, impressive that it even compiles.
     
  3. Offline

    Caderape2

    @SneakyBruh
    You can't write just a line in a config with bukkit.
    Make an arraylist of reports then save it to the file.

    Edit: srry wrong tahg
     
Thread Status:
Not open for further replies.

Share This Page