Minor code style fixes

This commit is contained in:
Ben Woo 2023-08-27 13:45:06 +08:00
parent 5e9739bda9
commit 317b2c679f
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8
2 changed files with 4 additions and 6 deletions

View File

@ -48,7 +48,7 @@ public class DumpsCommand extends MultiverseCommand {
private final MVCoreConfig config;
private final MultiverseCore plugin;
private final MVWorldManager worldManager;
private final CommandManager commandManager;
private final MVCommandManager commandManager;
@Inject
public DumpsCommand(@NotNull MVCommandManager commandManager,
@ -110,7 +110,6 @@ public class DumpsCommand extends MultiverseCommand {
final Map<String, String> files = versionEvent.getDetailedVersionInfo();
BukkitRunnable logPoster = new BukkitRunnable() {
@Override
public void run() {
@ -129,7 +128,6 @@ public class DumpsCommand extends MultiverseCommand {
pasteURLs.put("hastebin.com", postToService(PasteServiceType.HASTEBIN, true, versionInfo, files));
}
if (parsedFlags.hasFlag("--logs")) {
hasArgs = true;
sendMessage(issuer, MVCorei18n.DUMPS_UPLOADING_LOGS, new String[]{"{link}", "https://mclo.gs"});

View File

@ -111,13 +111,13 @@ public class SimpleMVWorldManager implements MVWorldManager {
public void getDefaultWorldGenerators() {
this.defaultGens = new HashMap<>();
if (plugin.getBukkitConfig() == null) {
File bukkitConfigFile = plugin.getBukkitConfig();
if (bukkitConfigFile == null) {
Logging.warning("Any Default worldgenerators will not be loaded!");
return;
}
FileConfiguration bukkitConfig = YamlConfiguration.loadConfiguration(plugin.getBukkitConfig());
FileConfiguration bukkitConfig = YamlConfiguration.loadConfiguration(bukkitConfigFile);
if (bukkitConfig.isConfigurationSection("worlds")) {
Set<String> keys = bukkitConfig.getConfigurationSection("worlds").getKeys(false);