Player model

This commit is contained in:
Braydon 2024-04-06 14:44:24 -04:00
parent 7e910f98b4
commit c4891ccbb5
2 changed files with 48 additions and 0 deletions

@ -0,0 +1,20 @@
package me.braydon.mc.model;
/**
* Moderation actions that can
* be taken on a {@link Player}.
*
* @author Braydon
*/
public enum ModerationAction {
/**
* The player is required to change their
* username before accessing Multiplayer.
*/
FORCED_NAME_CHANGE,
/**
* The player is using a banned skin.
*/
USING_BANNED_SKIN
}

@ -0,0 +1,28 @@
package me.braydon.mc.model;
import lombok.*;
import java.util.UUID;
/**
* A model representing a player.
*
* @author Braydon
*/
@NoArgsConstructor @AllArgsConstructor @Setter @Getter @EqualsAndHashCode(onlyExplicitlyIncluded = true) @ToString
public final class Player {
/**
* The unique id of this player.
*/
@EqualsAndHashCode.Include @NonNull private UUID uniqueId;
/**
* The username of this player.
*/
@NonNull private String username;
/**
* The profile actions this player has.
*/
@NonNull private ModerationAction[] profileActions;
}