Create a new event and add a few fields to existing events
This commit is contained in:
parent
957b65ebb3
commit
ede19b0572
8 changed files with 61 additions and 11 deletions
|
@ -0,0 +1,14 @@
|
|||
package dev.zontreck.libzontreck.util;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import dev.zontreck.libzontreck.LibZontreck;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
|
||||
public class ServerUtilities
|
||||
{
|
||||
public static ServerPlayer getPlayerByID(String id)
|
||||
{
|
||||
return LibZontreck.THE_SERVER.getPlayerList().getPlayer(UUID.fromString(id));
|
||||
}
|
||||
}
|
Reference in a new issue