Added a couple of useful services to rconservice
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
|
||||
app.controller( 'PlayerListController', PlayerListController );
|
||||
|
||||
function PlayerListController( $scope, rconService )
|
||||
{
|
||||
$scope.Output = new Array();
|
||||
|
||||
$scope.Refresh = function ()
|
||||
{
|
||||
rconService.Request( "playerlist", $scope, function ( msg )
|
||||
{
|
||||
$scope.Players = JSON.parse( msg.Message );
|
||||
});
|
||||
}
|
||||
|
||||
rconService.InstallService( $scope, $scope.Refresh )
|
||||
}
|
||||
Reference in New Issue
Block a user