src/main/java/brokenlib/common/notification/ServerNotificationManager.java
/**
     * Adds the specified notification to the notifications stack. This will be sent to the player with the specified
     * UUID as soon as he's connected.
     * @param target The UUID of the targeted player
     * @param notification The notification to be sent to the player
     */
Adds the specified notification to the notifications stack. This will be sent to the player with the specified
UUID as soon as he's connected.
@param target The UUID of the targeted player
@param notification The notification to be sent to the player
Adds the specified notification to the notifications stack . This will be sent to the player with the specified UUID as soon as he ' s connected . @param target The UUID of the targeted player @param notification The notification to be sent to the player
public void addNotification(UUID target, Notification notification) {
        notification.setIimestamp(System.currentTimeMillis());
        LinkedNotification linkedNotification = new LinkedNotification(target, notification);
        int id = getNextAvailableId();
        notifications.put(id, linkedNotification);
        BrokenLib.proxy.getDataWrapper().markDirty();
        EntityPlayerMP player = FMLCommonHandler.instance().getMinecraftServerInstance().getPlayerList().getPlayerByUUID(target);
        if (player != null) {
            new CSPacketNotification(id, linkedNotification.notification, Side.SERVER).sendUsing(network).to(player);
        }
    }
public void addNotification ( UUID target , Notification notification ) { notification . setIimestamp ( System . currentTimeMillis ( ) ) ; LinkedNotification linkedNotification = new LinkedNotification ( target , notification ) ; int id = getNextAvailableId ( ) ; notifications . put ( id , linkedNotification ) ; BrokenLib . proxy . getDataWrapper ( ) . markDirty ( ) ; EntityPlayerMP player = FMLCommonHandler . instance ( ) . getMinecraftServerInstance ( ) . getPlayerList ( ) . getPlayerByUUID ( target ) ; if ( player != null ) { new CSPacketNotification ( id , linkedNotification . notification , Side . SERVER ) . sendUsing ( network ) . to ( player ) ; } }
Adds the specified notification to the notifications stack.
Adds the specified notification to the notifications stack .