Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local event = require("event")
- local term = require("term")
- --local debug = component.debug
- local pim = component.pim
- term.clear()
- print("Инициализация...")
- os.sleep(1)
- print("Программа успешно запущена...")
- --white_list = {}
- black_list = {}
- function com_block(com)
- --component.command_block.setCommand(com)
- --component.command_block.executeCommand(com)
- component.opencb.execute(com)
- end
- function scan(a,nickname,uuid,adr)
- if (nickname ~= "SkyDrive_") then
- for i = 1, 40 do
- pim.pushItemIntoSlot("west", i)
- end
- --debug.getWorld(7).insertItem("minecraft:cooked_beef", 5, 0, "", 122, 14, 42, 1)
- --pim.pullItemIntoSlot("east", 1, 5, 1)
- com_block("fly " .. nickname .. " off")
- com_block("god " .. nickname .. " off")
- end
- --debug.getPlayer(nickname).setPosition(-410, 17, -377)
- com_block("tppos " .. nickname .. " 400 50 -362")
- print("Игрок: " .. nickname .. " присоединился к игре.")
- --[[for i = 1, #black_list do
- if nickname == black_list[i] then
- debug.getPlayer(nickname).setPosition(-400, 17, -377)
- print("Игрок: " .. nickname .. " находится в чёрном списке.")
- end
- end]]--
- end
- while true do
- local _, nickname = event.pull(1, "player_on")
- if nickname ~= nil then
- scan("",nickname)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement