me.jacklin213.lincore.utils
Class MSG

java.lang.Object
  extended by me.jacklin213.lincore.utils.MSG

public class MSG
extends Object

MSG class - Short for Messaging handles all the player messaging. To add methods create a local class and extend MSG.

Author:
jack

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

MSG

public MSG(Plugin instance,
           Logger logger,
           DataStorage dataStorage)
MSG constructor for LinPlugin series.

Parameters:
instance - Plugin instance
logger - Plugin logger
dataStorage - DataStorage instance from the Plugin
Method Detail

setDataStorageClass

public void setDataStorageClass(DataStorage instance)
Sets the instance of the DataStorage class for the MSG class.

Parameters:
instance - DataStorage instance (Should be declared in main class)

basicInfo

public void basicInfo(CommandSender sender)
Sends the sender a "Made by jacklin213" message.

Parameters:
sender -

info

public void info(CommandSender sender)
Sends the sender the Plugin name, Version, Author, Description.

Parameters:
sender -

commandReply

public void commandReply(String target,
                         String message)
commandReply is used instead of Player.sendMessage() method. This applies the Formatted pluginName with colors before the message.

Parameters:
target - The player that recieves the message
message - The message that is to be sent

commandConsoleReply

public void commandConsoleReply(String message)
commandConsoleReply is used instead of commandReply() because the console is not a Player

Parameters:
message -