Addresses review issues.

This commit is contained in:
tastybento 2019-01-26 22:07:26 -08:00
parent 5bf6264e95
commit 24806019b8
3 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,7 @@ public abstract class GameModeAddon extends Addon {
* Checks if world is governed by this game mode
* @param world - world to check
* @return true if in a world or false if not
* @since 1.1.1
*/
public boolean inWorld(World world) {
if (world == null) {

View File

@ -358,6 +358,7 @@ public class AddonsManager {
* @param worldName - name of world
* @param id - specific generator id
* @return ChunkGenerator or null if none found
* @since 1.1.1
*/
public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) {
return getGameModeAddons().stream().filter(gm -> gm.inWorld(Bukkit.getWorld(worldName))).findFirst().map(gm -> gm.getDefaultWorldGenerator(worldName, id)).orElse(null);

View File

@ -28,7 +28,7 @@ public class HooksManager {
return;
}
}
plugin.logError("Could not hook with " + hook.getPluginName() + ((hook.getFailureCause() != null) ? " because: " + hook.getFailureCause() : "") + ". Skipping...");
plugin.log("Could not hook with " + hook.getPluginName() + ((hook.getFailureCause() != null) ? " because: " + hook.getFailureCause() : "") + ". Skipping...");
}
public List<Hook> getHooks() {