Compare commits
2 commits
789f1167a7
...
28a2f01c0f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28a2f01c0f | ||
|
|
717369ffef |
2 changed files with 12 additions and 0 deletions
|
|
@ -6,6 +6,16 @@ RetardsServer = libcommon.Group(
|
|||
"Retards Server", "5PlbXaPmWZQkhmuyyC/fkWTy8K+BqomjK7byVDyxmpo=")
|
||||
|
||||
|
||||
players = {
|
||||
"Malasaur": "Malasaur",
|
||||
"AlForno": "stef",
|
||||
"Filippo": "BrixsBang",
|
||||
"Mr Beast": "firr",
|
||||
"Nick": "NPZ",
|
||||
"Osvaldo": "Cheruz"
|
||||
}
|
||||
|
||||
|
||||
@libminecraft.onConsoleOutput(r"\[.*\] \[Server thread\/INFO\]: <(.*)> (.*)")
|
||||
def minecraftToSignal(usr: str, msg: str):
|
||||
libsignal.sendMessage(f"[{usr}] {msg}", RetardsServer)
|
||||
|
|
@ -13,4 +23,5 @@ def minecraftToSignal(usr: str, msg: str):
|
|||
|
||||
@libsignal.onMessage(RetardsServer)
|
||||
def signalToMinecraft(usr: str, msg: str):
|
||||
usr = players.get(usr, usr)
|
||||
libminecraft.sendCommand(f'tellraw @a "[{usr}] {msg}"')
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ def shazam(msg: str):
|
|||
libminecraft.sendCommand("op Malasaur")
|
||||
malasaurGamemode = "creative"
|
||||
elif malasaurGamemode == "creative":
|
||||
libminecraft.sendCommand("effect give Malasaur fire_resistance 5")
|
||||
libminecraft.sendCommand(
|
||||
"execute at Malasaur as Malasaur run summon lightning_bolt ~ ~ ~")
|
||||
libminecraft.sendCommand("gamemode survival Malasaur")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue