Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Clean up BukkitUtil.
Dieser Commit ist enthalten in:
Ursprung
b461f44db8
Commit
781fc31d6f
@ -43,7 +43,7 @@ import org.bukkit.material.Dye;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class BukkitUtil {
|
public final class BukkitUtil {
|
||||||
|
|
||||||
private BukkitUtil() {
|
private BukkitUtil() {
|
||||||
}
|
}
|
||||||
@ -101,7 +101,7 @@ public class BukkitUtil {
|
|||||||
|
|
||||||
public static Player matchSinglePlayer(Server server, String name) {
|
public static Player matchSinglePlayer(Server server, String name) {
|
||||||
List<Player> players = server.matchPlayer(name);
|
List<Player> players = server.matchPlayer(name);
|
||||||
if (players.size() == 0) {
|
if (players.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return players.get(0);
|
return players.get(0);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren