|
45 | 45 | public final class Main extends JavaPlugin { |
46 | 46 |
|
47 | 47 | public static FileUtils configFileUtils; |
48 | | - public static String homesMenuPath = "menus/menu-homes.yml"; |
| 48 | + public static final String homesMenuPath = "menus/menu-homes.yml"; |
49 | 49 | public static StateFlag useHomesFlag; |
50 | 50 | public static StateFlag setHomesFlag; |
51 | 51 |
|
@@ -76,13 +76,13 @@ public static Main getInstance() { |
76 | 76 | public static boolean needsUpdate = false; |
77 | 77 | public String updateVersion = getDescription().getVersion(); |
78 | 78 |
|
79 | | - public String pluginName = getDescription().getName(); |
| 79 | + public final String pluginName = getDescription().getName(); |
80 | 80 | public String coloredPluginName = this.pluginName; |
81 | | - public String pluginVer = getDescription().getVersion(); |
82 | | - public String site = "https://modrinth.com/plugin/zhomes/version/latest"; |
83 | | - public static int bStatsId = 25021; |
| 81 | + public final String pluginVer = getDescription().getVersion(); |
| 82 | + public final String site = "https://modrinth.com/plugin/zhomes/version/latest"; |
| 83 | + public final static int bStatsId = 25021; |
84 | 84 |
|
85 | | - public File libsFolder = new File(getDataFolder(), "libs"); |
| 85 | + public final File libsFolder = new File(getDataFolder(), "libs"); |
86 | 86 |
|
87 | 87 | public final String mysqlVersion = "8.0.23"; |
88 | 88 | public final String mysqlJar = "mysql-connector-java-" + mysqlVersion + ".jar"; |
@@ -121,9 +121,7 @@ public void onEnable() { |
121 | 121 | zAPI.init(this, pluginName, coloredPluginName, NBT.preloadApi()); |
122 | 122 | //<editor-fold desc="Variables"> |
123 | 123 | main = Main.this; |
124 | | - pluginName = getDescription().getName(); |
125 | 124 | coloredPluginName = this.pluginName; |
126 | | - pluginVer = getDescription().getVersion(); |
127 | 125 | cfgu = new ConfigUtils(); |
128 | 126 | hu = new HomesUtils(); |
129 | 127 | db = new DatabaseConnection(); |
|
0 commit comments