SHARE
TWEET

adsdasasd

a guest Jul 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. players1 = {}
  2. t = peripheral.wrap("top")
  3. while true do
  4.  
  5.   local players = t.getPlayers()
  6.   if (players == nil) then
  7.   else
  8.   local remove = {}
  9.   for i2, v2 in pairs(players1) do
  10.     local has = false
  11.     for i, v in ipairs(players) do
  12.      
  13.       if (v2.name == v.name) then
  14.        
  15.         has = true  
  16.      
  17.       end
  18.    
  19.     end
  20.    
  21.     if (has == false) then
  22.      
  23.        table.insert(remove, v2.name)          
  24.     end
  25.  
  26.   end
  27.  
  28.   for i,v in pairs(players) do
  29.  
  30.     if players1[v.name] == nil then
  31. if v.name ~= "Inevitableness" and
  32.  v.name ~= "SacredCross" and
  33.  v.name ~= "Pr0vid3nce" and
  34.  v.name ~= " "  
  35. then
  36.       print(v.name)
  37.       print(v.location)
  38.       print(textutils.serialiseJSON(v))
  39.       players1[v.name] = t.getPlayerByName(v.name).all()
  40.      print(players1[v.name].position)
  41.       http.get("https://minecraftbot2.herokuapp.com/?searchterm=" .. v.name .. "%20Has%20Entered%20Sup's%20Tracker%20Base%20At%20Location%20"..textutils.serializeJSON(players1[v.name].position))
  42.      
  43.      end
  44.     end
  45.     end
  46.   for i2, v2 in pairs(remove) do
  47.  
  48.     http.get("https://minecraftbot2.herokuapp.com/?searchterm=" .. v2 .. "%20has%20left%20the%20base")
  49.     players1[v2] = nil
  50.  
  51.   end
  52.   end
  53.   sleep(0.05)
  54. end
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