diff --git a/src/main/java/com/onarandombox/MultiverseCore/destination/DestinationFactory.java b/src/main/java/com/onarandombox/MultiverseCore/destination/DestinationFactory.java index c3155901..402342c3 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/destination/DestinationFactory.java +++ b/src/main/java/com/onarandombox/MultiverseCore/destination/DestinationFactory.java @@ -27,7 +27,9 @@ import java.util.List; import java.util.Map; import java.util.regex.Pattern; -/** A factory class that will create destinations from specific strings. */ +/** + * A factory class that will create destinations from specific strings. + */ public class DestinationFactory { private static final Pattern CANNON_PATTERN = Pattern.compile("(?i)cannon-[\\d]+(\\.[\\d]+)?"); @@ -165,7 +167,12 @@ public class DestinationFactory { this.teleportCommand.addAdditonalPermission(other); return true; } - + + /** + * Gets all the {@link MVDestination} identifiers registered. + * + * @return A collection of destination identifiers. + */ public Collection getRegisteredIdentifiers() { return this.destList.keySet(); } diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/PlayerFinder.java b/src/main/java/com/onarandombox/MultiverseCore/utils/PlayerFinder.java index cd271b23..31845008 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/PlayerFinder.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/PlayerFinder.java @@ -135,7 +135,7 @@ public class PlayerFinder { List matchedPlayers = getMultiBySelector(playerSelector, sender); if (matchedPlayers == null || matchedPlayers.isEmpty()) { - Logging.warning("No player found with selector '%s' for %s.", playerSelector, sender.getName()); + Logging.fine("No player found with selector '%s' for %s.", playerSelector, sender.getName()); return null; } if (matchedPlayers.size() > 1) { diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java index 61da1547..c1fc106b 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java @@ -55,7 +55,6 @@ import java.util.stream.Collectors; */ public class WorldManager implements MVWorldManager { private final MultiverseCore plugin; - private final Pattern worldNamePattern = Pattern.compile("[a-zA-Z0-9/._-]+"); private final WorldPurger worldPurger; private final Map worlds; private Map worldsFromTheConfig;