Skip to content

Commit

Permalink
feat(pkuxkx): 发现玩家想要从功德箱拿东西时,自动关闭所有命令
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed Jan 24, 2024
1 parent b50388b commit 5b2a50a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mud/pkuxkx/plugins/shortcut.tin
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ load-lib sync;

#gag {向红豆打听有关『%*』的消息。$E};

#action {^请直接输入感恩之语:$TELNET[GA]$} {
xtt.DisableAllCommands false;
#line oneshot #alias {^%*{|ID=xiang}$} {#send %%0; xtt.UndoDisableAllCommands} {1.001};
};

#gag {^%s$};
#action {^>%s$} {#line gag};
#gag {^├{(─|┼)+}┤$};
Expand Down
4 changes: 2 additions & 2 deletions plugins/lib/xtintin/cmds.tin
Original file line number Diff line number Diff line change
Expand Up @@ -506,14 +506,14 @@ option.Define {DisableAllCommands} {Bool} {是否禁用所有的触发器和定
#if { @isTrue{$carefully} } {
#alias {^%*{|ID=paotin/disable-all-commands}$} {
#echo {<119>命令已被抑制,可用 <129>#send<119> 强制发送。撤销请用 <129>xtt.UndoDisableAllCommands<119> : <139>%s<299>} {%%0}
} {1.001};
} {1.002};
};
#else {
#alias {^%*{|ID=paotin/disable-all-commands}$} {
#echo {%s} {%%0};
#send %%0;
#line gag;
} {1.001};
} {1.002};
};

#gts {#delay 600 {#ats xtt.UndoDisableAllCommands}};
Expand Down

0 comments on commit 5b2a50a

Please sign in to comment.