No on tells how to make Money Config

Discussion in 'Plugin Development' started by Panduro, Aug 31, 2020.

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

    Panduro

    I am searching about 2 Weeks how to make a configuration just for Coins and Points, but there is no google research finding me to the explanation, not a single stupid one

    so it haves to mention, that I am the first person on the world asking this question:

    HOW do I create a Config for saving Money and Points after Killing and Hitting a Player?
    UUID not Name

    not a single
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Panduro config.set(uuid.toString(), amount) ?
     
  3. Offline

    Panduro

  4. Offline

    timtower Administrator Administrator Moderator

    @Panduro Hover your mouse over it, could also have been put
     
  5. Offline

    Panduro

    >
    The method set(String, int) is undefined for the type ObjectInputFilter.Config
    <
     
  6. Offline

    timtower Administrator Administrator Moderator

    @Panduro What config are you using then? Because ObjectInputFilter is not the correct type.
     
  7. Offline

    Panduro

    There exist no other type
     
  8. Offline

    timtower Administrator Administrator Moderator

    @Panduro There is no static config thing.
    You need to pass along the main class to your listener to the constructor, then you can use getConfig() on it and set values there.
     
  9. Offline

    Panduro

    that sounds stupid, I hate java for being that stupid
    wait me some second, and the next useless error will appear
     
  10. Offline

    timtower Administrator Administrator Moderator

    How else do you want to use plugin specific configs if there is only a single static instance?
     
  11. Offline

    Panduro

    Then tell me how to do that
     
  12. Offline

    timtower Administrator Administrator Moderator

  13. Offline

    Panduro

    that's not helpful

    [​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 1, 2020
  14. Offline

    timtower Administrator Administrator Moderator

    It is basic java though, should have known that before you started with Bukkit in my opinion.

    Don't know where you got the static getPlugin method from, but you don't need those.

    Have you considered putting the money handling in the main class?
     
  15. Offline

    Panduro

    java should start improving, I am working 2 weeks just to get into config
    I am already learning 2 months of Basics,

    if java wants to be that social incompetent, then real guys should help me out OR
    java don't deserve intelligent people like me, used as tool

    sorry for that aggressive lines.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 1, 2020
  16. Offline

    timtower Administrator Administrator Moderator

    https://bukkit.gamepedia.com/Configuration_API_Reference
    Things are documented though.

    And if you know that you are writing aggressive lines then don't do that.
    If you don't like Java then you should not write plugins.
     
  17. Offline

    Panduro

    I didn't double posted it

    Then don't sorry

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 1, 2020
Thread Status:
Not open for further replies.

Share This Page