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 MVCoreConfig config;
|
||||||
private final MultiverseCore plugin;
|
private final MultiverseCore plugin;
|
||||||
private final MVWorldManager worldManager;
|
private final MVWorldManager worldManager;
|
||||||
private final CommandManager commandManager;
|
private final MVCommandManager commandManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public DumpsCommand(@NotNull MVCommandManager commandManager,
|
public DumpsCommand(@NotNull MVCommandManager commandManager,
|
||||||
@ -110,7 +110,6 @@ public class DumpsCommand extends MultiverseCommand {
|
|||||||
|
|
||||||
final Map<String, String> files = versionEvent.getDetailedVersionInfo();
|
final Map<String, String> files = versionEvent.getDetailedVersionInfo();
|
||||||
|
|
||||||
|
|
||||||
BukkitRunnable logPoster = new BukkitRunnable() {
|
BukkitRunnable logPoster = new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
@ -129,7 +128,6 @@ public class DumpsCommand extends MultiverseCommand {
|
|||||||
pasteURLs.put("hastebin.com", postToService(PasteServiceType.HASTEBIN, true, versionInfo, files));
|
pasteURLs.put("hastebin.com", postToService(PasteServiceType.HASTEBIN, true, versionInfo, files));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (parsedFlags.hasFlag("--logs")) {
|
if (parsedFlags.hasFlag("--logs")) {
|
||||||
hasArgs = true;
|
hasArgs = true;
|
||||||
sendMessage(issuer, MVCorei18n.DUMPS_UPLOADING_LOGS, new String[]{"{link}", "https://mclo.gs"});
|
sendMessage(issuer, MVCorei18n.DUMPS_UPLOADING_LOGS, new String[]{"{link}", "https://mclo.gs"});
|
||||||
|
@ -111,13 +111,13 @@ public class SimpleMVWorldManager implements MVWorldManager {
|
|||||||
public void getDefaultWorldGenerators() {
|
public void getDefaultWorldGenerators() {
|
||||||
this.defaultGens = new HashMap<>();
|
this.defaultGens = new HashMap<>();
|
||||||
|
|
||||||
if (plugin.getBukkitConfig() == null) {
|
File bukkitConfigFile = plugin.getBukkitConfig();
|
||||||
|
if (bukkitConfigFile == null) {
|
||||||
Logging.warning("Any Default worldgenerators will not be loaded!");
|
Logging.warning("Any Default worldgenerators will not be loaded!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileConfiguration bukkitConfig = YamlConfiguration.loadConfiguration(plugin.getBukkitConfig());
|
FileConfiguration bukkitConfig = YamlConfiguration.loadConfiguration(bukkitConfigFile);
|
||||||
|
|
||||||
|
|
||||||
if (bukkitConfig.isConfigurationSection("worlds")) {
|
if (bukkitConfig.isConfigurationSection("worlds")) {
|
||||||
Set<String> keys = bukkitConfig.getConfigurationSection("worlds").getKeys(false);
|
Set<String> keys = bukkitConfig.getConfigurationSection("worlds").getKeys(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user