Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cb = peripheral.wrap("bottom")
- function numbercolors()
- term.setTextColor(colors.blue)
- end
- function start()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.lime)
- print("[1] - Start loud")
- print(" ")
- term.setTextColor(colors.red)
- print("[2] - Start silent")
- local event, key = os.pullEvent("char")
- if key == "1" then
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eStarting...")
- cb.runCommand()
- sleep(0.1)
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eLoading... 39%")
- cb.runCommand()
- sleep(0.1)
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eLoading... 83%")
- cb.runCommand()
- sleep(0.3)
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eDone!")
- cb.runCommand()
- sleep(0.2)
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eRunning version 0.01 Alpha.")
- cb.runCommand()
- sleep(0.2)
- wholeprogram()
- elseif key == "2" then
- wholeprogram()
- end
- end
- function wholeprogram()
- while true do
- numbercolors()
- term.clear()
- term.setCursorPos(1,3)
- print("[1] - Kick")
- print(" ")
- print("[2] - Say")
- print(" ")
- print("[3] - Smite")
- print(" ")
- print("[4] - Say info")
- print(" ")
- print("[5] - Update info")
- print(" ")
- term.setTextColor(colors.yellow)
- write("> ")
- local input = read()
- ---------------------- [ "KICK" ] --------------
- if input == "1" then
- term.setTextColor(colors.red)
- term.clear()
- term.setCursorPos(1,1)
- print("Who would you like to kick?")
- term.setTextColor(colors.yellow)
- write("> ")
- kickwho = read()
- if kickwho == "@a" then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Please do NOT use @a, @p or @r!")
- sleep(2.5)
- elseif kickwho == "@p" then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Please do NOT use @a, @p or @r!")
- sleep(2.5)
- elseif kickwho == "@r" then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Please do NOT use @a, @p or @r!")
- sleep(2.5)
- else
- print(" ")
- term.setTextColor(colors.red)
- print("Reason:")
- term.setTextColor(colors.yellow)
- write("> ")
- reasonkick = read()
- cb.setCommand("bukkit:kick "..kickwho.." "..reasonkick)
- cb.runCommand()
- cb.setCommand("say Kicked "..kickwho..", Reason: "..reasonkick)
- cb.runCommand()
- end
- --------------------- [ End of "KICK" ] --------
- --------------------- [ "Say" ] ----------------
- elseif input == "2" then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("What would you like to say?")
- print(" ")
- term.setTextColor(colors.yellow)
- write("> ")
- say = read()
- print(" ")
- cb.setCommand("say "..say)
- cb.runCommand()
- term.clear()
- term.setCursorPos(1,3)
- print("You said: "..say)
- sleep(1)
- --------------------- [ End of "Say" ] ---------
- --------------------- [ "Smite" ] --------------
- elseif input == "3" then
- --------------------- [ End of "Smite" ] -------
- elseif input == "console" then
- term.setTextColor(colors.lime)
- term.clear()
- term.setCursorPos(1,1)
- print("TIP: Write exit to close the console.")
- print(" ")
- term.setTextColor(colors.red)
- print("Please input a command:")
- while true do
- term.setTextColor(colors.yellow)
- write("> ")
- local cmd = read()
- if cmd == "exit" then
- term.clear()
- else
- cb.setCommand(cmd)
- cb.runCommand()
- end
- end
- end
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.lime)
- print("[1] - Start loud")
- print(" ")
- term.setTextColor(colors.red)
- print("[2] - Start silent")
- local event, key = os.pullEvent("char")
- if key == "1" then
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eStarting...")
- cb.runCommand()
- sleep(0.1)
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eLoading... 39%")
- cb.runCommand()
- sleep(0.1)
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eLoading... 83%")
- cb.runCommand()
- sleep(0.3)
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eDone!")
- cb.runCommand()
- sleep(0.2)
- cb.setCommand("sudo @a ping &f[&9C&f/&bD &cCore&f] &eRunning version 0.01 Alpha.")
- cb.runCommand()
- sleep(0.2)
- wholeprogram()
- elseif key == "2" then
- wholeprogram()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement