mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 12:35:12 +01:00
edit enable/disable formatting
This commit is contained in:
parent
d2102c78b6
commit
e9a899db44
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user