How can i get admin user in admin tool ?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

qazokmijn01
Posts: 21
Joined: 15 May 2018, 08:34

How can i get admin user in admin tool ?

Postby qazokmijn01 » 22 May 2020, 10:09

How can i get admin user in admin tool ?
i want send response to custom admin module
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: How can i get admin user in admin tool ?

Postby Bax » 22 May 2020, 15:07

When you send a request to your request handler from a custom admin module, the handleAdminRequest(User sender, ISFSObject params) method is called. Ad you can see, the first parameter is the sender or, in other words, the administrator who sent the request. Just send your response to that user. In the documentation you will find a full example:
http://docs2x.smartfoxserver.com/Gettin ... om-modules
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 78 guests