rconService.getUsers() will get and parse the userdata
PlayerInfo displays Info and provide a link to steam profile Dropdown in the Playerlist offers more options the selected Player
This commit is contained in:
+14
-3
@@ -1,9 +1,9 @@
|
||||
|
||||
function RconService()
|
||||
{
|
||||
var s = {};
|
||||
|
||||
s.Callbacks = {};
|
||||
var s = {
|
||||
Callbacks: {}
|
||||
};
|
||||
|
||||
s.Connect = function ( addr, pass )
|
||||
{
|
||||
@@ -102,5 +102,16 @@ function RconService()
|
||||
}
|
||||
}
|
||||
|
||||
s.getUsers = function(scope, success) {
|
||||
this.Request( "playerlist", scope, function ( response )
|
||||
{
|
||||
var players = JSON.parse( response.Message );
|
||||
|
||||
if(typeof success === 'function') {
|
||||
success.call(scope, players);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
Reference in New Issue
Block a user