Interface GameMailService

All Superinterfaces:
BaseService
All Known Implementing Classes:
NoOpGameMailService

public interface GameMailService extends BaseService
Game mail service interface for in-game mail system. This service provides cross-module mail functionality.
Version:
1.0.0
Author:
wisdomme
  • Method Details

    • sendMail

      boolean sendMail(UUID senderUuid, String senderName, String receiverName, String subject, String content)
      Send a simple text mail.
      Parameters:
      senderUuid - sender's UUID (can be null for system mail)
      senderName - sender's name
      receiverName - receiver's name
      subject - mail subject
      content - mail content
      Returns:
      true if sent successfully
    • sendMail

      boolean sendMail(UUID senderUuid, String senderName, String receiverName, String subject, String content, org.bukkit.inventory.ItemStack[] items)
      Send a mail with attachments.
      Parameters:
      senderUuid - sender's UUID (can be null for system mail)
      senderName - sender's name
      receiverName - receiver's name
      subject - mail subject
      content - mail content
      items - attached items
      Returns:
      true if sent successfully
    • sendSystemMail

      boolean sendSystemMail(String receiverName, String subject, String content)
      Send a system notification mail.
      Parameters:
      receiverName - receiver's name
      subject - mail subject
      content - mail content
      Returns:
      true if sent successfully
    • getUnreadCount

      int getUnreadCount(UUID playerUuid)
      Get unread mail count for a player.
      Parameters:
      playerUuid - player's UUID
      Returns:
      unread mail count
    • isAvailable

      boolean isAvailable()
      Check if the mail service is available and functional.
      Returns:
      true if available
    • notifyNewMail

      void notifyNewMail(org.bukkit.entity.Player player)
      Notify a player about new mail.
      Parameters:
      player - the player to notify