Added a function for notifying peers

This commit is contained in:
kuroppoi 2021-05-30 22:47:49 +02:00
parent a9968c69ee
commit a019a73c81

View file

@ -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);
}