Fix deprecated chat references

This commit is contained in:
AnimeGitB
2022-08-16 14:28:15 +09:30
committed by Luke H-W
parent c115fe1abe
commit 97779fd35a
5 changed files with 10 additions and 10 deletions

View File

@@ -798,7 +798,7 @@ public class Player {
return;
}
this.getServer().getChatManager().sendPrivateMessageFromServer(getUid(), message.toString());
this.getServer().getChatSystem().sendPrivateMessageFromServer(getUid(), message.toString());
// this.sendPacket(new PacketPrivateChatNotify(GameConstants.SERVER_CONSOLE_UID, getUid(), message.toString()));
}
@@ -810,7 +810,7 @@ public class Player {
*/
public void sendMessage(Player sender, Object message) {
// this.sendPacket(new PacketPrivateChatNotify(sender.getUid(), this.getUid(), message.toString()));
this.getServer().getChatManager().sendPrivateMessage(sender, this.getUid(), message.toString());
this.getServer().getChatSystem().sendPrivateMessage(sender, this.getUid(), message.toString());
}
// ---------------------MAIL------------------------
@@ -1199,7 +1199,7 @@ public class Player {
this.hasSentLoginPackets = true;
// Send server welcome chat.
this.getServer().getChatManager().sendServerWelcomeMessages(this);
this.getServer().getChatSystem().sendServerWelcomeMessages(this);
// Set session state
session.setState(SessionState.ACTIVE);
@@ -1219,7 +1219,7 @@ public class Player {
public void onLogout() {
try {
// Clear chat history.
this.getServer().getChatManager().clearHistoryOnLogout(this);
this.getServer().getChatSystem().clearHistoryOnLogout(this);
// stop stamina calculation
getStaminaManager().stopSustainedStaminaHandler();