edit enable/disable formatting

This commit is contained in:
jascotty2 2019-09-16 12:22:36 -05:00
parent d2102c78b6
commit e9a899db44

View File

@ -76,6 +76,7 @@ public abstract class SongodaPlugin extends JavaPlugin {
return;
}
console.sendMessage(""); // blank line to speparate chatter
console.sendMessage(ChatColor.GREEN + "=============================");
console.sendMessage(String.format("%s%s %s by %sSongoda <3!", ChatColor.GRAY.toString(),
getDescription().getName(), getDescription().getVersion(), ChatColor.DARK_PURPLE.toString()));
@ -88,6 +89,7 @@ public abstract class SongodaPlugin extends JavaPlugin {
onPluginEnable();
if(emergencyStop) {
console.sendMessage(ChatColor.RED + "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
console.sendMessage("");
return;
}
// Start Metrics
@ -96,10 +98,12 @@ public abstract class SongodaPlugin extends JavaPlugin {
getLogger().log(Level.SEVERE, "Unexpected error while loading " + getDescription().getName() + ": Disabling plugin!", t);
emergencyStop();
console.sendMessage(ChatColor.RED + "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
console.sendMessage("");
return;
}
console.sendMessage(ChatColor.GREEN + "=============================");
console.sendMessage(""); // blank line to speparate chatter
}
protected void emergencyStop() {
@ -112,6 +116,7 @@ public abstract class SongodaPlugin extends JavaPlugin {
if (emergencyStop) {
return;
}
console.sendMessage(""); // blank line to speparate chatter
console.sendMessage(ChatColor.GREEN + "=============================");
console.sendMessage(String.format("%s%s %s by %sSongoda <3!", ChatColor.GRAY.toString(),
getDescription().getName(), getDescription().getVersion(), ChatColor.DARK_PURPLE.toString()));
@ -119,6 +124,7 @@ public abstract class SongodaPlugin extends JavaPlugin {
ChatColor.RED.toString(), "Disabling", ChatColor.GRAY.toString()));
onPluginDisable();
console.sendMessage(ChatColor.GREEN + "=============================");
console.sendMessage(""); // blank line to speparate chatter
}
public ConsoleCommandSender getConsole() {