JsonHandler webHandle = new JsonHandler( plugin );
HashMap<String, String> url_items = new HashMap<String, String>();
url_items.put( "lastId", String.valueOf(plugin.lastID) );
url_items.put( "lastType", String.valueOf(plugin.lastType) );
url_items.put( "exec", "banSync" );
JSONObject response = webHandle.hdl_jobj(url_items);
try {
if(response.has("actions")){
if (response.getJSONArray("actions").length() > 0) {
for (int v = 0; v < response.getJSONArray("actions").length(); v++) {
JSONObject plyer = response.getJSONArray("actions").getJSONObject(v);