mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 19:01:44 +00:00
Added windows OS check
This commit is contained in:
1 parent
905986467b
commit
340594a882
1 file changed
+11
@@ -15,6 +15,7 @@ public class Core {
|
||||
private static boolean verbose;
|
||||
private static boolean dump;
|
||||
private static boolean loadLocal; //Loads both local and public scripts/servers
|
||||
private static String OS = System.getProperty("os.name").toLowerCase();
|
||||
|
||||
/**
|
||||
* Enabled loadLocal mode
|
||||
@@ -86,6 +87,16 @@ public class Core {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if user is using a windows OS
|
||||
* @return <b>true</b> if user is using a windows OS
|
||||
*/
|
||||
public static boolean isWindows() {
|
||||
|
||||
return (OS.indexOf("win") >= 0);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks for updates.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user