Replaced Minecraft command with tellraw and Server with ./start.sh
This commit is contained in:
parent
49a9964ec5
commit
ceccdf818b
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ def sendCommand(cmd: str) -> None:
|
|||
|
||||
|
||||
def main() -> None:
|
||||
libcommon.minecraftInit("python -u program.py")
|
||||
libcommon.minecraftInit("sudo ./start.sh")
|
||||
|
||||
t = Thread(target=reader, daemon=True)
|
||||
t.start()
|
||||
|
|
|
|||
|
|
@ -14,4 +14,4 @@ def minecraftToSignal(usr: str, msg: str):
|
|||
@libsignal.onMessage(RSBeta)
|
||||
def signalToMinecraft(usr: str, msg: str):
|
||||
print(usr, msg)
|
||||
libminecraft.sendCommand(f"say [{usr}] {msg}")
|
||||
libminecraft.sendCommand(f"tellraw @a [{usr}] {msg}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue