mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 19:01:44 +00:00
Simplified code
This commit is contained in:
1 parent
b2b2cb5ce4
commit
c71904fb86
1 file changed
+1
-2
@@ -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