mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 21:27:44 +01:00
Addresses review issues.
This commit is contained in:
parent
5bf6264e95
commit
24806019b8
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user