|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.jacklin213.lincore.utils.MSG
public class MSG
MSG class - Short for Messaging handles all the player messaging. To add methods create a local class and extend MSG.
| Constructor Summary | |
|---|---|
MSG(Plugin instance,
Logger logger,
DataStorage dataStorage)
MSG constructor for LinPlugin series. |
|
| Method Summary | |
|---|---|
void |
basicInfo(CommandSender sender)
Sends the sender a "Made by jacklin213" message. |
void |
commandConsoleReply(String message)
commandConsoleReply is used instead of commandReply() because the console is not a Player |
void |
commandReply(String target,
String message)
commandReply is used instead of Player.sendMessage() method. |
void |
info(CommandSender sender)
Sends the sender the Plugin name, Version, Author, Description. |
void |
setDataStorageClass(DataStorage instance)
Sets the instance of the DataStorage class for the MSG class. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MSG(Plugin instance,
Logger logger,
DataStorage dataStorage)
instance - Plugin instancelogger - Plugin loggerdataStorage - DataStorage instance from the Plugin| Method Detail |
|---|
public void setDataStorageClass(DataStorage instance)
instance - DataStorage instance (Should be declared in main class)public void basicInfo(CommandSender sender)
sender - public void info(CommandSender sender)
sender -
public void commandReply(String target,
String message)
Player.sendMessage() method. This applies the Formatted pluginName with colors before the message.
target - The player that recieves the messagemessage - The message that is to be sentpublic void commandConsoleReply(String message)
commandReply() because the console is not a Player
message -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||