Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
102bbea11e
Commit
c128a3594c
@ -60,6 +60,9 @@ public class TechHiderCommand extends SWCommand implements Listener {
|
||||
|
||||
Optional<TechHider> techHider = techHiders.computeIfAbsent(region, rg -> {
|
||||
File file = rg.gameModeConfig();
|
||||
if (file == null) {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
FileConfiguration config = YamlConfiguration.loadConfiguration(file);
|
||||
if (!config.getBoolean("Techhider.Active", false)) {
|
||||
|
@ -591,7 +591,7 @@ public class Region {
|
||||
|
||||
public File gameModeConfig() {
|
||||
File baseFile = new File(BauSystem.getInstance().getDataFolder().getParentFile(), "FightSystem");
|
||||
for (int version = Core.getVersion(); version > 15; version--) {
|
||||
for (int version = Core.getVersion(); version >= 15; version--) {
|
||||
File specific = new File(baseFile, getDisplayName() + version + ".yml");
|
||||
if (specific.exists()) return specific;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren