mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-16 21:21:32 +01:00
Added missing return statement to InspectCommand
Affects issues: - Fixed #1494
This commit is contained in:
parent
c5ecc4fbbd
commit
e0946ebc9d
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user