public final class Notification
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
sendToAll(java.util.Collection<net.risingworld.api.objects.Player> playerList,
java.lang.String message)
Send a notification to a group of players.
|
static void |
sendToAll(java.util.Collection<net.risingworld.api.objects.Player> playerList,
java.lang.String message,
int duration)
Send a notification to a group of players.
|
static void |
sendToPlayer(net.risingworld.api.objects.Player player,
java.lang.String message)
Send a notification to the given user with a default duration of 10 secounds.
|
static void |
sendToPlayer(net.risingworld.api.objects.Player player,
java.lang.String message,
int duration)
Send a notification to the given user with a specific duration.
|
public static void sendToAll(java.util.Collection<net.risingworld.api.objects.Player> playerList,
java.lang.String message)
playerList - The users who should receive the notification.message - The message to the users (max. 20 characters).public static void sendToAll(java.util.Collection<net.risingworld.api.objects.Player> playerList,
java.lang.String message,
int duration)
playerList - The users who should receive the notification.message - The message to the users (max. 20 characters).duration - The time how long the notification should be displayed in seconds (between 1-30).public static void sendToPlayer(net.risingworld.api.objects.Player player,
java.lang.String message)
player - The user who should receive the notification.message - The message to the user (max. 20 characters).public static void sendToPlayer(net.risingworld.api.objects.Player player,
java.lang.String message,
int duration)
player - The user who should receive the notification.message - The message to the user (max. 20 characters).duration - The time how long the notification should be displayed in seconds (between 1-30).