Renamed chatState to partyChatState
This commit is contained in:
parent
ffd9430a65
commit
c15da75114
|
|
@ -321,7 +321,7 @@ public class Queries {
|
|||
|
||||
statement.setString(1, user.getUuid().toString());
|
||||
statement.setInt(2, user.getPartyId());
|
||||
statement.setInt(3, user.toggledChat() ? 1 : 0);
|
||||
statement.setInt(3, user.toggledPartyChat() ? 1 : 0);
|
||||
statement.setInt(4, user.ForceTp() ? 1 : 0);
|
||||
statement.setInt(5, user.isGcOn() ? 1 : 0);
|
||||
|
||||
|
|
@ -331,7 +331,7 @@ public class Queries {
|
|||
}
|
||||
}
|
||||
|
||||
public static void setChatState(boolean toggledChat, UUID uuid) {
|
||||
public static void setPartyChatState(boolean toggledChat, UUID uuid) {
|
||||
setBitWhereId("UPDATE chat_users set toggled_chat = ? WHERE uuid = ?", toggledChat, uuid);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import java.util.UUID;
|
|||
public class ChatUser {
|
||||
private final UUID uuid;
|
||||
private final int partyId;
|
||||
private boolean toggledChat;
|
||||
private boolean toggledPartyChat;
|
||||
private boolean forceTp;
|
||||
private String displayName;
|
||||
private String prefix;
|
||||
|
|
@ -26,7 +26,7 @@ public class ChatUser {
|
|||
public ChatUser(UUID uuid, int partyId, boolean toggled_chat, boolean force_tp, boolean toggle_Gc) {
|
||||
this.uuid = uuid;
|
||||
this.partyId = partyId;
|
||||
this.toggledChat = toggled_chat;
|
||||
this.toggledPartyChat = toggled_chat;
|
||||
this.forceTp = force_tp;
|
||||
|
||||
displayName = Queries.getNickname(uuid);
|
||||
|
|
@ -52,13 +52,13 @@ public class ChatUser {
|
|||
return partyId;
|
||||
}
|
||||
|
||||
public boolean toggledChat() {
|
||||
return toggledChat;
|
||||
public boolean toggledPartyChat() {
|
||||
return toggledPartyChat;
|
||||
}
|
||||
|
||||
public void toggleChat() {
|
||||
toggledChat = !toggledChat;
|
||||
Queries.setChatState(toggledChat, uuid); //TODO: Async pls
|
||||
public void togglePartyChat() {
|
||||
toggledPartyChat = !toggledPartyChat;
|
||||
Queries.setPartyChatState(toggledPartyChat, uuid); //TODO: Async pls
|
||||
}
|
||||
|
||||
public boolean ForceTp() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user