getAllUsersButOne for Zone

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

duke
Posts: 31
Joined: 16 Apr 2009, 11:23

getAllUsersButOne for Zone

Postby duke » 11 May 2009, 12:35

Currently you can use getAllUsersButOne on a Room type, which is great - it's a very useful function! Could it be added to Zone?

This (untested) should mimic it:

Code: Select all

            User admin = zone.getUserByName("admin");
            
            receivers = zone.getAllUsersInZone();
            receivers.remove(admin);
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 28 May 2009, 15:38

Yep that code does it two lines instead of one... I guess it's bearable :)
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “Features Wish List”

Who is online

Users browsing this forum: No registered users and 18 guests