public class PlayerHelper
extends java.lang.Object
Constructor and Description |
---|
PlayerHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<net.minecraft.entity.player.ServerPlayerEntity> |
getPlayer(java.util.UUID uuid)
Get a player entity safely from UUID.
|
static boolean |
hasPermission(net.minecraft.entity.player.ServerPlayerEntity player,
java.lang.String permission) |
public static boolean hasPermission(net.minecraft.entity.player.ServerPlayerEntity player, java.lang.String permission)
public static java.util.Optional<net.minecraft.entity.player.ServerPlayerEntity> getPlayer(java.util.UUID uuid)
uuid
- A player UUID.