Giter Club home page Giter Club logo

Comments (4)

dasavick avatar dasavick commented on June 14, 2024 1

Źle używasz double brace initialisation. To nigdy nie miało prawo działać, nie widzę takiej opcji nawet poza configami. Zamiast flags.put powinno być this.put.

from okaeri-configs.

CDFN avatar CDFN commented on June 14, 2024

Prawdopodobnie próbujesz wrzucić nulla do configu - to nie przejdzie. Wrzucaj zamiast tego pustą mapę, jeżeli nie chcesz żadnych danych. A jeżeli to nie to to przydałby się kod.

from okaeri-configs.

dasavick avatar dasavick commented on June 14, 2024

Zdecydowanie wygląda to na problem samego sposobu inicjalizacji. Przydałoby się, zamiast samych stacktrace wrzucać też klasę configu i sposób ładowania jak robisz zgłoszenia.

from okaeri-configs.

arthurr0 avatar arthurr0 commented on June 14, 2024

Sorki zapomniałem :(

    @Comment("[#] Konfigurowanie flag.")
    Map<FlagType, Flag> flags = new HashMap<>() {{
        flags.put(FlagType.BUILD, new Flag("Budowanie", "Możliwość budowania bloków.", false, true));
        flags.put(FlagType.DESTROY, new Flag("Niszczenie", "Możliwość niszczenia bloków.", false, true));
        flags.put(FlagType.CHEST, new Flag("Otwieranie skrzynek", "Możliwość otwierania skrzyń.", true, true));
    }};


@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
public class Flag extends OkaeriConfig {

    @Comment("[#] Wyświetlana nazwa flagi.")
    private String displayName;

    @Comment("[#] Opis flagi.")
    private String description;

    @Comment("[#] Możliwość zmiany flagi.")
    private boolean configurable;

    @Comment("[#] Czy flaga powinna być domyślną.")
    private boolean defaultFlag;

}

from okaeri-configs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.