So, I have a server wide extension (not a room plugin/extension) so far, it does a few things, like tell me how many people are in a room, or what room a specific user is in. that all works fine and well.
however, i added a new method to tell me what are the most populated rooms. The logic works well, but for some reason, the message does not get back to the client. I then had the moethd be called for a differnt action tag, and it works there!
maybe im missing something obvious, but its got me stumped. I do know that im sending off 2 request to the server at once, but both seem to run...but only 1 is sent back (2 different methods).Code:public void request(String playerName, EsObjectRO requestParameters) { EsObject messageIn = new EsObject(); messageIn.addAll(requestParameters); String action = messageIn.getString(PluginConstants.ACTION); if (action.equals(PluginConstants.METHOD_A))//this works for some reason doMethodB(playerName,messageIn); if (action.equals(PluginConstants.METHOD_B))//the logic works, but the message is never sent! doMethodB(playerName,messageIn); //....snip....
oh, this is for es5.2.3 (yes, i know i should upgrade, but its a slow process thats kinda out of my control)
also, i tried to print out the error message of getApi().sendPluginMessageToUser(user, messageOut); but, i dont know what to import to make it happen. the import that is in the docs doesnt seem to help.
thanks


Reply With Quote
