Compare commits
No commits in common. "28a2f01c0fe2789e5d1ba2556418f605b0fde6d9" and "789f1167a7a994c2b3f0bf1a2867dc8cceb662c7" have entirely different histories.
28a2f01c0f
...
789f1167a7
2 changed files with 0 additions and 12 deletions
|
|
@ -6,16 +6,6 @@ RetardsServer = libcommon.Group(
|
||||||
"Retards Server", "5PlbXaPmWZQkhmuyyC/fkWTy8K+BqomjK7byVDyxmpo=")
|
"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\]: <(.*)> (.*)")
|
@libminecraft.onConsoleOutput(r"\[.*\] \[Server thread\/INFO\]: <(.*)> (.*)")
|
||||||
def minecraftToSignal(usr: str, msg: str):
|
def minecraftToSignal(usr: str, msg: str):
|
||||||
libsignal.sendMessage(f"[{usr}] {msg}", RetardsServer)
|
libsignal.sendMessage(f"[{usr}] {msg}", RetardsServer)
|
||||||
|
|
@ -23,5 +13,4 @@ def minecraftToSignal(usr: str, msg: str):
|
||||||
|
|
||||||
@libsignal.onMessage(RetardsServer)
|
@libsignal.onMessage(RetardsServer)
|
||||||
def signalToMinecraft(usr: str, msg: str):
|
def signalToMinecraft(usr: str, msg: str):
|
||||||
usr = players.get(usr, usr)
|
|
||||||
libminecraft.sendCommand(f'tellraw @a "[{usr}] {msg}"')
|
libminecraft.sendCommand(f'tellraw @a "[{usr}] {msg}"')
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ def shazam(msg: str):
|
||||||
libminecraft.sendCommand("op Malasaur")
|
libminecraft.sendCommand("op Malasaur")
|
||||||
malasaurGamemode = "creative"
|
malasaurGamemode = "creative"
|
||||||
elif malasaurGamemode == "creative":
|
elif malasaurGamemode == "creative":
|
||||||
libminecraft.sendCommand("effect give Malasaur fire_resistance 5")
|
|
||||||
libminecraft.sendCommand(
|
libminecraft.sendCommand(
|
||||||
"execute at Malasaur as Malasaur run summon lightning_bolt ~ ~ ~")
|
"execute at Malasaur as Malasaur run summon lightning_bolt ~ ~ ~")
|
||||||
libminecraft.sendCommand("gamemode survival Malasaur")
|
libminecraft.sendCommand("gamemode survival Malasaur")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue