mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
Added a function for notifying peers
This commit is contained in:
parent
a9968c69ee
commit
a019a73c81
1 changed files with 4 additions and 0 deletions
|
@ -402,6 +402,10 @@ public class Player extends Entity implements CommandExecutor {
|
|||
}
|
||||
}
|
||||
|
||||
public void notifyPeers(Object message, NotificationType type) {
|
||||
sendMessageToPeers(new NotificationMessage(message, type));
|
||||
}
|
||||
|
||||
public void alert(String text) {
|
||||
notify(text, NotificationType.ALERT);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue