17 lines
332 B
Python
17 lines
332 B
Python
import MinecraftLibrary as mil
|
|
import time
|
|
|
|
|
|
class Mil(mil.MCROCN):
|
|
def __init__(self, host, password, port):
|
|
super().__init__(host, password, port)
|
|
|
|
|
|
mcr=Mil(host="", password="", port=25565)
|
|
if not mcr.Connect(): exit()
|
|
|
|
mcr.Gamerule("sendCommandFeedback", False)
|
|
mcr.Gamemode("survival", "MXYYSH2")
|
|
|
|
mcr.disconnect()
|