9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-21 07:59:28 +00:00

Fixed NPE

This commit is contained in:
Auxilor
2021-03-13 14:17:15 +00:00
parent dc089ece9b
commit 461110bc4b

View File

@@ -405,6 +405,7 @@ public class EcoBoss extends PluginDependent {
// Top Damager Commands // Top Damager Commands
this.topDamagerCommands = new HashMap<>(); this.topDamagerCommands = new HashMap<>();
for (int i = 1; i <= 3; i++) { for (int i = 1; i <= 3; i++) {
this.topDamagerCommands.put(i, new ArrayList<>());
for (String string : this.getConfig().getStrings("rewards.top-damager-commands." + i)) { for (String string : this.getConfig().getStrings("rewards.top-damager-commands." + i)) {
double chance = 100; double chance = 100;
if (string.contains("::")) { if (string.contains("::")) {