mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Fix dev edition checking.
Former-commit-id: 19f8ce7abe8f516eda13ad173231b2a62c0de353 [formerly ad64ac2dd7b97715239a52e25de4f69be9c48063] Former-commit-id: 577a6396818f2ac026b9ef18d666fb14c39b30ac
This commit is contained in:
1 parent
34908bc517
commit
a58f4ad478
3 files changed
+4
-3
No files matched your search
@@ -184,7 +184,7 @@ public class QuickShop extends JavaPlugin {
|
||||
getLogger().severe(
|
||||
"WARNING: Set dev-mode: true in config.yml to allow qs load on dev mode(Maybe need add this line by your self).");
|
||||
noopDisable = true;
|
||||
bootError=new BootError("SnapShot cannot running under production environment","Turn on dev-mode to unlock safe protection.");
|
||||
bootError=new BootError("SnapShot cannot running under production environment","Turn on dev-mode to unlock protection.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -832,7 +832,8 @@ public class Util {
|
||||
* @return
|
||||
*/
|
||||
public static boolean isDevEdition() {
|
||||
if(QuickShop.instance.getDescription().getVersion().contains("dev")||QuickShop.instance.getDescription().getVersion().contains("alpha")||QuickShop.instance.getDescription().getVersion().contains("beta")||QuickShop.instance.getDescription().getVersion().contains("snapshot")) {
|
||||
String version = QuickShop.instance.getDescription().getVersion().toLowerCase();
|
||||
if(version.contains("dev")|version.contains("develop")|version.contains("alpha")|version.contains("beta")|version.contains("test")|version.contains("snapshot")|version.contains("preview")) {
|
||||
return true;
|
||||
}else {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user