mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-08 23:13:25 -04:00
Refactored entirety of SuiWindows so they're easier to add callbacks and set properties, including the addition of parameters map in replacement of returnParams for window callbacks
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package utilities;
|
||||
|
||||
import intents.sui.SuiWindowIntent;
|
||||
import network.packets.swg.zone.chat.ChatSystemMessage;
|
||||
import resources.Terrain;
|
||||
import resources.encodables.OutOfBandPackage;
|
||||
import resources.encodables.ProsePackage;
|
||||
@@ -88,6 +89,15 @@ public final class IntentFactory {
|
||||
new ChatBroadcastIntent(target, new ProsePackage("StringId", new StringId(table, key), objects)).broadcast();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a message to just the console chat for the target.
|
||||
* @param target Player to receive the message
|
||||
* @param message Message to display in the players chat console.
|
||||
*/
|
||||
public void sendConsoleMessage(Player target, String message) {
|
||||
target.sendPacket(new ChatSystemMessage(ChatSystemMessage.SystemChatType.CHAT, message));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a mail to the receiver with the specified subject, message, from the specified sender.
|
||||
* @param receiver Player receiving the mail.
|
||||
|
||||
Reference in New Issue
Block a user