Chat/api/src/main/java/com/alttd/chat/objects/ChatPlayer.java

35 lines
714 B
Java
Raw Normal View History

2021-05-13 12:11:29 +00:00
package com.alttd.velocitychat.objects;
2021-05-03 17:16:39 +00:00
import java.util.UUID;
public class ChatPlayer {
2021-05-13 09:49:47 +00:00
// todo merge partyuser here, or make party user extend this?
// todo gctoggle?
private UUID uuid;
private UUID replyTarget;
2021-05-13 09:49:47 +00:00
private boolean globalChatEnabled; // this vs permission?
2021-05-13 09:49:47 +00:00
public ChatPlayer(UUID p) {
uuid = p;
2021-05-03 17:16:39 +00:00
replyTarget = null;
}
public UUID getUuid() {
return uuid;
}
public boolean isGlobalChatEnabled() {
return globalChatEnabled;
}
public UUID getReplyTarget() {
return replyTarget;
}
public void setReplyTarget(UUID uuid) {
2021-05-13 09:49:47 +00:00
if (!replyTarget.equals(uuid))
replyTarget = uuid;
}
}