Package me.bimmr.bimmcore.messages
Class Message
- java.lang.Object
-
- me.bimmr.bimmcore.messages.Message
-
public class Message extends java.lang.ObjectA Manager class to use different types of message systems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage.MessageTypeThe enum Message type.
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
Modifier and Type Method Description static voidsendActionBar(org.bukkit.entity.Player player, java.lang.String message)Send an actionbarstatic voidsendBossBar(org.bukkit.entity.Player player, java.lang.String text, org.bukkit.boss.BarColor barColor, org.bukkit.boss.BarStyle barStyle, java.lang.Double progress)Send a BossBarstatic voidsendChatMessage(org.bukkit.entity.Player player, java.lang.String message)Send a regular chat messagestatic voidsendMessage(Message.MessageType messageType, org.bukkit.entity.Player player, java.lang.String message, java.lang.Object... extra)Send a Message using the messagetypestatic voidsendSubTitle(org.bukkit.entity.Player player, java.lang.String message)Send a subtitlestatic voidsendTitle(org.bukkit.entity.Player player, java.lang.String message)Send a titlestatic voidsendTitleAndSubTitle(org.bukkit.entity.Player player, java.lang.String title, java.lang.String subTitle)Send a Title and a subTitle
-
-
-
Method Detail
-
sendMessage
public static void sendMessage(Message.MessageType messageType, org.bukkit.entity.Player player, java.lang.String message, java.lang.Object... extra)
Send a Message using the messagetype- Parameters:
messageType- the message typeplayer- the playermessage- the messageextra- the extra
-
sendTitleAndSubTitle
public static void sendTitleAndSubTitle(org.bukkit.entity.Player player, java.lang.String title, java.lang.String subTitle)Send a Title and a subTitle- Parameters:
player- the playertitle- the titlesubTitle- the sub title
-
sendTitle
public static void sendTitle(org.bukkit.entity.Player player, java.lang.String message)Send a title- Parameters:
player- the playermessage- the message
-
sendSubTitle
public static void sendSubTitle(org.bukkit.entity.Player player, java.lang.String message)Send a subtitle- Parameters:
player- the playermessage- the message
-
sendActionBar
public static void sendActionBar(org.bukkit.entity.Player player, java.lang.String message)Send an actionbar- Parameters:
player- the playermessage- the message
-
sendChatMessage
public static void sendChatMessage(org.bukkit.entity.Player player, java.lang.String message)Send a regular chat message- Parameters:
player- the playermessage- the message
-
sendBossBar
public static void sendBossBar(org.bukkit.entity.Player player, java.lang.String text, org.bukkit.boss.BarColor barColor, org.bukkit.boss.BarStyle barStyle, java.lang.Double progress)Send a BossBar- Parameters:
player- the playertext- the textbarColor- the bar colorbarStyle- the bar styleprogress- the progress
-
-