Fixed shazam module
This commit is contained in:
parent
b172069cba
commit
789f1167a7
1 changed files with 7 additions and 3 deletions
|
|
@ -15,16 +15,20 @@ def malasaurSetGamemode(gamemode: str):
|
||||||
malasaurGamemode = gamemode.lower()
|
malasaurGamemode = gamemode.lower()
|
||||||
|
|
||||||
|
|
||||||
@libsignal.onMessage(RetardsServer)
|
@libminecraft.onConsoleOutput(r"\[.*\] \[Server thread\/INFO\]: <Malasaur> (.*)")
|
||||||
def shazam(usr: str, msg: str):
|
def shazam(msg: str):
|
||||||
if usr == "Malasaur" and "shazam" in msg.lower():
|
global malasaurGamemode
|
||||||
|
|
||||||
|
if "shazam" in msg.lower():
|
||||||
if malasaurGamemode == "survival":
|
if malasaurGamemode == "survival":
|
||||||
libminecraft.sendCommand("gamemode creative Malasaur")
|
libminecraft.sendCommand("gamemode creative Malasaur")
|
||||||
libminecraft.sendCommand(
|
libminecraft.sendCommand(
|
||||||
"execute at Malasaur as Malasaur run summon lightning_bolt ~ ~ ~")
|
"execute at Malasaur as Malasaur run summon lightning_bolt ~ ~ ~")
|
||||||
libminecraft.sendCommand("op Malasaur")
|
libminecraft.sendCommand("op Malasaur")
|
||||||
|
malasaurGamemode = "creative"
|
||||||
elif malasaurGamemode == "creative":
|
elif malasaurGamemode == "creative":
|
||||||
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")
|
||||||
libminecraft.sendCommand("deop Malasaur")
|
libminecraft.sendCommand("deop Malasaur")
|
||||||
|
malasaurGamemode = "survival"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue