mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-04 08:39:23 +00:00
Simplified code
This commit is contained in:
@@ -44,8 +44,7 @@ public class SDNScripts extends ScriptParser {
|
||||
String line;
|
||||
|
||||
while ((line = br.readLine()) != null) {
|
||||
Object obj = parser.parse(line);
|
||||
JSONObject jsonObject = (JSONObject) obj;
|
||||
JSONObject jsonObject = (JSONObject) parser.parse(line);
|
||||
String jarName = String.valueOf(jsonObject.get("jarname"));
|
||||
int sdnId = Integer.parseInt(String.valueOf(jsonObject.get("scriptid")));
|
||||
String scriptName = String.valueOf(jsonObject.get("scriptname"));
|
||||
|
||||
Reference in New Issue
Block a user