Move ChatPlayer to api
This commit is contained in:
parent
f4c3b0557e
commit
001d64b521
|
|
@ -1,19 +1,17 @@
|
||||||
package com.alttd.chat.handlers;
|
package com.alttd.chat.objects;
|
||||||
|
|
||||||
import com.velocitypowered.api.proxy.Player;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
public class ChatPlayer {
|
public class ChatPlayer {
|
||||||
|
// todo merge partyuser here, or make party user extend this?
|
||||||
|
// todo gctoggle?
|
||||||
|
|
||||||
private UUID uuid;
|
private UUID uuid;
|
||||||
private Player player;
|
|
||||||
private UUID replyTarget;
|
private UUID replyTarget;
|
||||||
private boolean globalChatEnabled;
|
private boolean globalChatEnabled; // this vs permission?
|
||||||
|
|
||||||
public ChatPlayer(Player p) {
|
public ChatPlayer(UUID p) {
|
||||||
player = p;
|
uuid = p;
|
||||||
uuid = p.getUniqueId();
|
|
||||||
replyTarget = null;
|
replyTarget = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -21,10 +19,6 @@ public class ChatPlayer {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Player getPlayer() {
|
|
||||||
return player;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isGlobalChatEnabled() {
|
public boolean isGlobalChatEnabled() {
|
||||||
return globalChatEnabled;
|
return globalChatEnabled;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user