link1107 / DonationExecutor

Плагин для ру-стримеров, генерирующий события на сервере Minecraft (Spigot/Paper) на основании донатов с "Donation Alerts"
GNU Affero General Public License v3.0
218 stars 22 forks source link

Avoid this #15

Closed belliel closed 2 years ago

belliel commented 2 years ago

https://github.com/link1107/DonationExecutor/blob/4a643213e22dc741057620d3007f58ab024faa8c/src/main/java/igorlink/service/MainConfig.java#L72-L76

https://www.programcreek.com/java-api-examples/?class=org.bukkit.configuration.file.FileConfiguration&method=getBoolean

twitchFilter = config.getString("TwitchFilter") == "true";
// or use
twitchFilter = config.getBoolean("TwitchFilter");
link1107 commented 2 years ago

Спасибо, фиксанул