Skip to content

Instantly share code, notes, and snippets.

class EventEmitter
def initialize
@events = {
"blah" => []
}
end
def on(name, &handler)
@events[name] << handler
end
$${
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));
$${
STRIP(&schat,%CHAT%)
ifmatches(%CHAT%,"§k")
log("%&schat%")
endif;
#ratelimit = %TIMESTAMP% - %#ratelimitlast%
if(%#ratelimit% > 2)
$${
//@#code = "000"
unset(@timer);
RANDOM(@#code, 100, 999)
TOAST("tutorial","keys","Temporary Code","%@#code%",50)
}$$
$${
$$[echolog[ECHO,LOG]](X = $$px);
WAIT(1t);
$$[echolog](Y = $$py);
WAIT(1t);
$$[echolog](Z = $$pz);
WAIT(1t);
$$[echolog](Place = $$pn);
wait(1t);
$$[echolog](WORLD = %DIMENSION%)
$${
&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%!");
$${
IF(~CTRL && ~ALT);
LOG("CTRL+ALT was held down");
ELSEIF(~ALT);
LOG("ALT was held down");
ELSEIF(~LMOUSE);
IF(RMOUSE);
ECHO("/j");
$${
foreach(RUNNING);
STOP(%MACROID%)
LOG("Killed - %MACROID%, %MACRONAME%")
NEXT;
}$$
$${
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;
$${
&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()