mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-04 20:06:06 +00:00
Clean up BukkitUtil.
This commit is contained in:
parent
b461f44db8
commit
781fc31d6f
@ -43,7 +43,7 @@ import org.bukkit.material.Dye;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class BukkitUtil {
|
||||
public final class BukkitUtil {
|
||||
|
||||
private BukkitUtil() {
|
||||
}
|
||||
@ -101,7 +101,7 @@ public class BukkitUtil {
|
||||
|
||||
public static Player matchSinglePlayer(Server server, String name) {
|
||||
List<Player> players = server.matchPlayer(name);
|
||||
if (players.size() == 0) {
|
||||
if (players.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return players.get(0);
|
||||
|
Loading…
Reference in New Issue
Block a user