mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-10 17:41:52 +01:00
Minor code style fixes
This commit is contained in:
parent
5e9739bda9
commit
317b2c679f
@ -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"});
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user