diff --git a/modules/minecraft_signal_bridge.py b/modules/minecraft_signal_bridge.py index fb67705..3d91dfa 100644 --- a/modules/minecraft_signal_bridge.py +++ b/modules/minecraft_signal_bridge.py @@ -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}"') diff --git a/modules/shazam.py b/modules/shazam.py index b5b52e7..427bdb6 100644 --- a/modules/shazam.py +++ b/modules/shazam.py @@ -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")