This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EventEmitter | |
def initialize | |
@events = { | |
"blah" => [] | |
} | |
end | |
def on(name, &handler) | |
@events[name] << handler | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$${ | |
STRIP(&schat,%CHAT%) | |
//----------------------------------// | |
//ifmatches(%&schat%,"brebot : tpaccept"); | |
// exec(chat.txt,chat,echo(/tpaccept)); | |
// echo(/r Accepted) | |
//endif; | |
//----------------------------------// | |
//ifmatches(%&schat%,"brebot : home"); | |
// exec(chat.txt,chat,echo(/home)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$${ | |
STRIP(&schat,%CHAT%) | |
ifmatches(%CHAT%,"§k") | |
log("%&schat%") | |
endif; | |
#ratelimit = %TIMESTAMP% - %#ratelimitlast% | |
if(%#ratelimit% > 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$${ | |
//@#code = "000" | |
unset(@timer); | |
RANDOM(@#code, 100, 999) | |
TOAST("tutorial","keys","Temporary Code","%@#code%",50) | |
}$$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$${ | |
&blocks = "(chest|trapped_chest|dispenser|dropper|hopper|.*_shulker_box)" | |
IFMATCHES("%HITID%",%&blocks%) | |
KEY(use) | |
WAIT(5t) | |
IF(%GUI% = "NONE") | |
POPUPMESSAGE("&4Couldn't open the %HITID%!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$${ | |
IF(~CTRL && ~ALT); | |
LOG("CTRL+ALT was held down"); | |
ELSEIF(~ALT); | |
LOG("ALT was held down"); | |
ELSEIF(~LMOUSE); | |
IF(RMOUSE); | |
ECHO("/j"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$${ | |
foreach(RUNNING); | |
STOP(%MACROID%) | |
LOG("Killed - %MACROID%, %MACRONAME%") | |
NEXT; | |
}$$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$${ | |
STRIP(&command,$$[command]); | |
&p = "" | |
ifmatches(%&command%,"%&p%mention|%&p%messages|%&p%mail"); | |
arraysize(@&mentionlast[],#s) | |
IF(%#s% = 0); | |
toast("hint","keys","No Messages","No Messages to Display",50) | |
STOP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$${ | |
&user = PROMPT(&return,"$$u","Select Player",true) | |
//log(The user inputted is %&user%) | |
&prefix = &3[&bUUID Search&3] | |
IF(%&user% = "") | |
LOG("%&prefix% &cNo user selected.") | |
STOP() | |
ENDIF() |
OlderNewer