Skip to content

Instantly share code, notes, and snippets.

@zack6849
Created August 18, 2012 02:55
Show Gist options
  • Save zack6849/3384067 to your computer and use it in GitHub Desktop.
Save zack6849/3384067 to your computer and use it in GitHub Desktop.
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