Created
August 18, 2012 02:55
-
-
Save zack6849/3384067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void warning(final String message, final ChatColor messageColor){ | |
final String template = "%s[%s]"; | |
final String string = String.format(template, ChatColor.RED, message); | |
plugin.getServer().broadcastMessage(string); | |
} | |
if (plugin.config.getBoolean(ConfigPath.DELAY)) | |
{ | |
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new KickPlayersTask(plugin), time * 20); | |
plugin.messaging.broadcast("MaintenanceMode enabled by " + sender.getName() + ".", ChatColor.YELLOW); | |
plugin.messaging.warning(warningMessagepre + warningMessage, ChatColor.RED); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment