mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-04 08:39:23 +00:00
Added windows OS check
This commit is contained in:
@@ -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