Advertisement
Revector

start.lua

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