This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
so i wanted to make a discord bcast feature but it replaces the channel with a color so like /discord bcast #channel name <@&role id> the only way i found was to add
placeholders_replace_mode: NO_COLORCODE
but i also have text in the code with color codes so now it wont replace those i was wondering if i can deactivate color code for a certain part of my script full code
discord-bcast: command: /dbcast type: - RUN_COMMAND placeholders_replace_mode: NO_COLORCODE runcmd: - $Script$%if%$arg1==announcements - '/discord bcast $arg2 $multiargs' - '$text$ &2Logging Usage' - "$log$[$player] executed /dbcast with the following args type: announcements message: $arg2" # - $Script$%if%$arg1==custom - $Script$%if%$arg2==general - '/discord bcast #$arg2 $multiargs' - "$log$[$player] executed /dbcast with the following args type: custom, channel: $arg2, message: $arg3" - '$text$ &2Logging Usage' # - $Script$%if%$arg2==auction - '/discord bcast #$arg2-live $multiargs' - "$log$[$player] executed /dbcast with the following args type: custom, channel: $arg2, message: $arg3" - '$text$ &2Logging Usage' # - $Script$%if%$arg2==announcements - '/discord bcast #$arg2 $multiargs' - "$log$[$player] executed /dbcast with the following args type: custom, channel: $arg2, message: $arg3" - '$text$ &2Logging Usage' # - $Script$%if%$arg2==news - '/discord bcast #garconia-$arg2 $multiargs' - "$log$[$player] executed /dbcast with the following args type: custom, channel: $arg2, message: $arg3" - '$text$ &2Logging Usage' # - $Script$%if%$arg2==updates<and>$arg3==mention - '/discord bcast #server-$arg2 <@&914595710324850819> $arg4 $multiargs' - "$log$[$player] executed /dbcast with the following args type: custom, channel: $arg2, arg3: $arg3 message: $arg4" - '$text$ &2Logging Usage' # - $Script$%if%$arg2==updates<and>$arg3==mention<and>$arg4==everyone - '/discord bcast #server-$arg2 @everyone $arg4 $multiargs' - "$log$[$player] executed /dbcast with the following args type: custom, channel: $arg2, arg3: $arg3 message: $arg4" - '$text$ &2Logging Usage' # - $Script$%if%$arg2==updates<and>$arg3==mention<and>$arg4==updates - '/discord bcast #server-$arg2 <@&914595710324850819> $arg4 $multiargs' - "$log$[$player] executed /dbcast with the following args type: custom, channel: $arg2, arg3: $arg3 message: $arg4" - '$text$ &2Logging Usage' # - $Script$%if%$arg2==updates<and>$arg3!=mention - '/discord bcast #server-$arg2 $multiargs' - "$log$[$player] executed /dbcast with the following args type: custom, channel: $arg2, message: $arg3" - '$text$ &2Logging Usage' # - $Script$%if%$arg1==help - /dcast-help $arg2 - $Script$%else% - /dcast-help permission-node: admin.dbcast permission-error: '&c&lNot a command. Type /help for help' log_filename: bcastlogs.log require_all_arguments: false # # tab_completer: '1': - announcements - custom - help '2': - general<pos_1=custom> - auction<pos_1=custom> - announcements<pos_1=custom> - news<pos_1=custom> - updates<pos_1=custom> - <MESSAGE><pos_1=announcements> - 1<pos_1=help> - 2<pos_1=help> - <CHANNEL><pos_1=help> - channels<pos_1=help> - mentions<pos_1=help> '3': - mention<pos_2=updates> - <MESSAGE><pos_1=custom> '4': - <MESSAGE><pos_3=mention> - everyone<pos_3=mention> - updates<pos_3=mention> - <MESSAGE><pos_3=mention> register: true tab_completer_display_mode: CHARACTER_BASED
To post a comment, please login or register a new account.