SHARE
TWEET

Everybody Edits - List Rooms

capasha Feb 9th, 2019 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "guest", "guest", null, (Client client) =>
  2.             {
  3.                 client.Multiplayer.ListRooms(null, null, 0, 0, (RoomInfo[] rinfo) =>
  4.                 {
  5.                     if (rinfo != null)
  6.                     {
  7.                         foreach (var roominfo in rinfo)
  8.                         {
  9.                             if (roominfo.RoomType == $"Everybodyedits{client.BigDB.Load("config", "config")["version"]}" || roominfo.RoomType == $"Beta{client.BigDB.Load("config", "config")["version"]}")
  10.                             {
  11.                                 Console.WriteLine(string.Format("RoomID: [{0}] Players In Room: [{1}]\n",roominfo.Id,roominfo.OnlineUsers));
  12.                                 foreach (var roomdata in roominfo.RoomData)
  13.                                 {
  14.                                     Console.Write(roomdata.Key);
  15.                                     Console.WriteLine(roomdata.Key.PadLeft(20).Replace(roomdata.Key,roomdata.Value));
  16.                                 }
  17.                                 Console.WriteLine("\n");
  18.                             }
  19.                            
  20.                         }
  21.                     }
  22.                 }, (PlayerIOError error) => { Console.WriteLine("World-Listing Error: " + error.Message); });
  23.             }, (PlayerIOError error) => { Console.WriteLine("Login Error: " + error.Message); });
  24.             Console.ReadKey();
  25.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top