mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 08:56:04 +01:00
Fix deprecated chat references
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user