Skip to content

Commit 19e597e

Browse files
committed
Remove version check on startup
1 parent bfc838b commit 19e597e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

VotingPlugin/src/main/java/com/bencodez/votingplugin/VotingPluginMain.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,18 +1385,6 @@ public void run() {
13851385
public void onPreLoad() {
13861386
plugin = this;
13871387

1388-
// disable plugin for older versions below 1.12
1389-
1390-
if (NMSManager.getInstance().isVersion("1.7", "1.8", "1.9", "1.10", "1.11")) {
1391-
plugin.getLogger().severe("Detected running " + Bukkit.getVersion()
1392-
+ ", this version is not supported on this build, read the plugin page. Disabling...");
1393-
if (!configFile.isOverrideVersionDisable()) {
1394-
Bukkit.getPluginManager().disablePlugin(this);
1395-
return;
1396-
}
1397-
plugin.getLogger().warning("Overriding version disable, beware of using this! This may cause issues!");
1398-
}
1399-
14001388
setupFiles();
14011389

14021390
loadVoteSites();

0 commit comments

Comments
 (0)