SHOW:
|
|
- or go back to the newest paste.
1 | - | local components = require("component") |
1 | + | --pastebin get AwVRfB33 start.lua |
2 | - | local term = require('term') |
2 | + | |
3 | - | local text = require("text") |
3 | + | local components = require("component") |
4 | - | local commandBlock = components.opencb |
4 | + | local term = require('term') |
5 | - | |
5 | + | local text = require("text") |
6 | - | local function exec(command) |
6 | + | local commandBlock = components.opencb |
7 | - | commandBlock.execute(command) |
7 | + | |
8 | - | end |
8 | + | local function exec(command) |
9 | - | |
9 | + | commandBlock.execute(command) |
10 | - | local function op(nicname) |
10 | + | end |
11 | - | exec("/pex user " .. nicname .. " add Admin") |
11 | + | |
12 | - | io.write("You have succesfully become manager this server. Enjoy!\n") |
12 | + | local function op(nicname) |
13 | - | end |
13 | + | exec("/pex user " .. nicname .. " add Admin") |
14 | - | |
14 | + | io.write("You have succesfully become manager this server. Enjoy!\n") |
15 | - | io.write('Введите имя игрока: \n>> ') |
15 | + | end |
16 | - | local nicname = io.read() |
16 | + | |
17 | - | |
17 | + | io.write('Введите имя игрока: \n>> ') |
18 | local nicname = io.read() | |
19 | ||
20 | op(nicname) |