|
1 | | -using SDG.Unturned; |
| 1 | +using System; |
| 2 | +using SDG.Unturned; |
2 | 3 | using System.Collections.Generic; |
3 | 4 | using System.Threading.Tasks; |
4 | 5 | using Tavstal.TLibrary; |
@@ -35,28 +36,27 @@ public override void OnLoad() |
35 | 36 | // Attach player related events |
36 | 37 | PlayerEventHandler.AttachEvents(); |
37 | 38 |
|
38 | | - Logger.LogWarning("████████╗███████╗ █████╗ ███████╗███████╗"); |
39 | | - Logger.LogWarning("╚══██╔══╝██╔════╝██╔══██╗██╔════╝██╔════╝"); |
40 | | - Logger.LogWarning(" ██║ ███████╗███████║█████╗ █████╗ "); |
41 | | - Logger.LogWarning(" ██║ ╚════██║██╔══██║██╔══╝ ██╔══╝ "); |
42 | | - Logger.LogWarning(" ██║ ███████║██║ ██║██║ ███████╗"); |
43 | | - Logger.LogWarning(" ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝"); |
44 | | - Logger.Log("#########################################"); |
45 | | - Logger.Log("# Thanks for using my plugin"); |
46 | | - Logger.Log("# Plugin Created By Tavstal"); |
47 | | - Logger.Log("# Discord: Tavstal"); |
48 | | - Logger.Log("# Website: https://redstoneplugins.com"); |
49 | | - // Please do not remove this region and its code, because the license require credits to the author. |
50 | | - #region Credits to Tavstal |
51 | | - Logger.Log("#########################################"); |
52 | | - Logger.Log($"# This plugin uses TLibrary."); |
53 | | - Logger.Log($"# TLibrary Created By: Tavstal"); |
54 | | - Logger.Log($"# Github: https://github.com/TavstalDev/TLibrary/tree/master"); |
55 | | - #endregion |
56 | | - Logger.Log("#########################################"); |
57 | | - Logger.Log($"# Build Version: {Version}"); |
58 | | - Logger.Log($"# Build Date: {BuildDate}"); |
59 | | - Logger.Log("#########################################"); |
| 39 | + Logger.Log("████████╗███████╗ █████╗ ███████╗███████╗", ConsoleColor.Cyan, prefix: null); |
| 40 | + Logger.Log("╚══██╔══╝██╔════╝██╔══██╗██╔════╝██╔════╝", ConsoleColor.Cyan, prefix: null); |
| 41 | + Logger.Log(" ██║ ███████╗███████║█████╗ █████╗ ", ConsoleColor.Cyan, prefix: null); |
| 42 | + Logger.Log(" ██║ ╚════██║██╔══██║██╔══╝ ██╔══╝ ", ConsoleColor.Cyan, prefix: null); |
| 43 | + Logger.Log(" ██║ ███████║██║ ██║██║ ███████╗", ConsoleColor.Cyan, prefix: null); |
| 44 | + Logger.Log(" ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝", ConsoleColor.Cyan, prefix: null); |
| 45 | + Logger.Log("#########################################", prefix: null); |
| 46 | + Logger.Log("# Thanks for using this plugin! #", prefix: null); |
| 47 | + Logger.Log("#########################################", prefix: null); |
| 48 | + Logger.Log("# Developed By: Tavstal", prefix: null); |
| 49 | + Logger.Log("# Discord: @Tavstal", prefix: null); |
| 50 | + Logger.Log("# Website: https://redstoneplugins.com", prefix: null); |
| 51 | + Logger.Log("# My GitHub: https://tavstaldev.github.io", prefix: null); |
| 52 | + Logger.Log("#########################################", prefix: null); |
| 53 | + Logger.Log($"# Plugin Version: {Version}", prefix: null); |
| 54 | + Logger.Log($"# Build Date: {BuildDate}", prefix: null); |
| 55 | + Logger.Log($"# TLibrary Version: {LibraryVersion}", prefix: null); |
| 56 | + Logger.Log("#########################################", prefix: null); |
| 57 | + Logger.Log("# Found an issue or have a suggestion?", prefix: null); |
| 58 | + Logger.Log("# Report it here: https://github.com/TavstalDev/TSafe/issues", prefix: null); |
| 59 | + Logger.Log("#########################################", prefix: null); |
60 | 60 |
|
61 | 61 | DatabaseManager = new DatabaseManager(this, Config); |
62 | 62 | if (IsConnectionAuthFailed) |
@@ -101,7 +101,7 @@ private void Event_OnPluginsLoaded(int i) |
101 | 101 | { |
102 | 102 | if (IsConnectionAuthFailed) |
103 | 103 | { |
104 | | - Logger.LogWarning($"# Unloading {GetPluginName()} due to database authentication error."); |
| 104 | + Logger.Warning($"# Unloading {GetPluginName()} due to database authentication error."); |
105 | 105 | this.UnloadPlugin(); |
106 | 106 | } |
107 | 107 | } |
|
0 commit comments