Paste #45018: NEW ONE

Date: 2017/10/16 09:02:47 UTC-07:00
Type: Server Log

View Raw Paste Download This Paste
Copy Link


    // <--[example]
    // @Title Using Format Scripts
    // @Description
    // Use format scripts to create preset custom formats for narrate or announce commands.
    //
    // @Code
    // # +--------------------
    // # | Using Format Scripts
    // # |
    // # | Format scripts allow you to create custom preset
    // # | formats for the narrate and announce commands.
    // # |
    //
    // # +-- 1. Write the FormatScript --+
    // FormatExample:
    //   type: format
    //   format: <&4>WARNING<&co> <&f><text>
    //
    //   # <&4> = red text
    //   # <&f> = white text
    //   # <&co> = a :colon:
    //   # <text> will become the message
    //
    // # +-- 2. Use it in any other script --+
    //
    // - narrate format:FormatExample "This is a warning message!"
    //
    // # +-- 3. This would show something like --+
    //
    // # (red)WARNING: (white)This is a warning message!
    //
    // # +-- 4. tips about formatScripts --+
    // # - Use short names, you will type them a lot
    // # - Can be used directly in the 'announce' and 'narrate' command
    // # - Can be accessed by any script
    // # - Can make use of any tag, like <npc.name> , <player.name> , ...
    // # - Bundle them in 1 file 'UtilFormats.yml'
    // # - You can reformat Tags using the tag '<el@element.format[<script>]>'
    // #   EG, <npc.name.format[FormatExample]>
    //
    // -->