Added missing return statement to InspectCommand

Affects issues:
- Fixed #1494
This commit is contained in:
Risto Lahtela 2020-06-19 16:36:09 +03:00
parent c5ecc4fbbd
commit e0946ebc9d
2 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,7 @@ public class InspectCommand extends CommandNode {
if (playerName == null) {
sender.sendMessage(locale.getString(CommandLang.FAIL_NO_PERMISSION));
return;
}
Database.State dbState = dbSystem.getDatabase().getState();

View File

@ -65,6 +65,7 @@ public class UUIDUtility {
* @return UUID of the player
*/
public UUID getUUIDOf(String playerName) {
if (playerName == null) throw new IllegalArgumentException("Player name can not be null!");
UUID uuid = getUUIDFromString(playerName);
if (uuid != null) return uuid;