mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Tweak #generateRandomLocation behaviour for reliability
This commit is contained in:
1 parent
e0096fbf7e
commit
8442934dd9
2 files changed
+15
-9
No files matched your search
@@ -133,7 +133,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
|
||||
getLoggingAdapter().log(Level.INFO, "Successfully established a connection to the database");
|
||||
} else {
|
||||
throw new HuskHomesInitializationException("Failed to establish a connection to the database. " +
|
||||
"Please check the supplied database credentials in the config file");
|
||||
"Please check the supplied database credentials in the config file");
|
||||
}
|
||||
|
||||
// Initialize the network messenger if proxy mode is enabled
|
||||
@@ -195,8 +195,8 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
|
||||
if (pluginHooks.size() > 0) {
|
||||
pluginHooks.forEach(PluginHook::initialize);
|
||||
getLoggingAdapter().log(Level.INFO, "Registered " + pluginHooks.size() + " plugin hooks: " +
|
||||
pluginHooks.stream().map(PluginHook::getHookName)
|
||||
.collect(Collectors.joining(", ")));
|
||||
pluginHooks.stream().map(PluginHook::getHookName)
|
||||
.collect(Collectors.joining(", ")));
|
||||
}
|
||||
|
||||
// Register events
|
||||
@@ -226,8 +226,8 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
|
||||
if (settings.disabledCommands.stream().anyMatch(disabledCommand -> {
|
||||
final String command = (disabledCommand.startsWith("/") ? disabledCommand.substring(1) : disabledCommand);
|
||||
return command.equalsIgnoreCase(commandType.commandBase.command) ||
|
||||
Arrays.stream(commandType.commandBase.aliases)
|
||||
.anyMatch(alias -> alias.equalsIgnoreCase(command));
|
||||
Arrays.stream(commandType.commandBase.aliases)
|
||||
.anyMatch(alias -> alias.equalsIgnoreCase(command));
|
||||
})) {
|
||||
new BukkitCommand(new DisabledCommand(this), this).register(pluginCommand);
|
||||
return;
|
||||
@@ -258,7 +258,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
|
||||
getLatestVersionIfOutdated().thenAccept(newestVersion ->
|
||||
newestVersion.ifPresent(newVersion -> getLoggingAdapter().log(Level.WARNING,
|
||||
"An update is available for HuskHomes, v" + newVersion
|
||||
+ " (Currently running v" + getPluginVersion() + ")")));
|
||||
+ " (Currently running v" + getPluginVersion() + ")")));
|
||||
}
|
||||
|
||||
// Perform automatic upgrade if detected
|
||||
|
||||
Reference in new issue
Block a user