Changed the script processor code to no longer incorrectly close interfaces on SOFT queue scripts
Rewrote Jarvald
This commit is contained in:
@@ -1606,6 +1606,16 @@ fun closeTabInterface(player: Player) {
|
||||
player.interfaceManager.closeSingleTab()
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes any open (both chat and non-chat) interfaces for the player
|
||||
* @param player the player to close the interfaces for
|
||||
*/
|
||||
fun closeAllInterfaces(player: Player) {
|
||||
player.interfaceManager.close()
|
||||
player.interfaceManager.closeChatbox()
|
||||
player.dialogueInterpreter.close()
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a dialogue that uses the player's chathead.
|
||||
* @param player the player to send the dialogue to
|
||||
|
||||
Reference in New Issue
Block a user