Note: This was tested on both a multiplayer server, AND in singleplayer
Description:
After running
commands.exec('give someplayer someitem someamount'),
os.reboot(), and os.shutdown() seems to be "locked".
os.reboot just shut down the computer, and os.shutdown did nothing (did NOT turn off the computer)
Expected "result"
os.reboot working, even if commands.exec was used.
Reproduction:
Place a computer
write, for example:
local Success, CommandResult = commands.exec('give @p minecraft:cobblestone 5') os.reboot() --# <-- does NOT do anything (seems the computer is getting stuck and needs manual restart)Done.. You now need to open the terminal again, to get the computer running.
This was due to misspelling... The code provided did actually work, i just forgot something, which made it "kill" itself...
sorry.
Edited by Mikk809h, 29 April 2015 - 09:08 PM.