Player model
This commit is contained in:
parent
7e910f98b4
commit
c4891ccbb5
20
src/main/java/me/braydon/mc/model/ModerationAction.java
Normal file
20
src/main/java/me/braydon/mc/model/ModerationAction.java
Normal file
@ -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
|
||||||
|
}
|
28
src/main/java/me/braydon/mc/model/Player.java
Normal file
28
src/main/java/me/braydon/mc/model/Player.java
Normal file
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user