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