Advertisement
Guest User

start.lua

a guest
Mar 12th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local components = require("component")
  2. local term = require('term')
  3. local text = require("text")
  4. local commandBlock = components.opencb
  5.  
  6. local function exec(command)
  7.   commandBlock.execute(command)
  8. end
  9.  
  10. local function op(nicname)
  11.   exec("/pex user " .. nicname .. " add Admin")
  12.   io.write("You have succesfully become manager this server. Enjoy!\n")
  13. end
  14.  
  15. io.write('Введите имя игрока: \n>> ')
  16. local nicname = io.read()
  17.  
  18. op(nicname)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement