Class PrivateChatSession
java.lang.Object
me.tayebyassine.homestead.sessions.PrivateChatSession
Tracks which players are in private-region-chat mode.
When a player has an active session, their chat messages are routed to the region's private chat channel instead of the global chat.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasSession(org.bukkit.entity.Player player) Check whether the given player is in private chat mode.static voidnewSession(org.bukkit.entity.Player player) Enable private chat mode for the given player.static voidremoveSession(org.bukkit.entity.Player player) Disable private chat mode for the given player.
-
Field Details
-
SESSIONS
-
-
Method Details
-
newSession
public static void newSession(org.bukkit.entity.Player player) Enable private chat mode for the given player.- Parameters:
player- the player to enable private chat for
-
hasSession
public static boolean hasSession(org.bukkit.entity.Player player) Check whether the given player is in private chat mode.- Parameters:
player- the player to check- Returns:
trueif the player has an active private chat session
-
removeSession
public static void removeSession(org.bukkit.entity.Player player) Disable private chat mode for the given player.- Parameters:
player- the player to disable private chat for
-