MVdW Effects - Historical

Applied By Maximvdw: Mar 12, 2018 at 6:35 AM

MVdW Effects
Effects for MVdW-Software plugins

You can basically create any effect you like. But if you want to make quick or more advanced changes you can use these formatting tags.

Keep in mind that these tags are limited in what they can do, some/most can't be combined.

Regex matcher[/h2]
[B]<regexmatch group="1" pattern="(.*)\.">1234.maxim</regexmatch>[/B]
[I]This allows you to use java regex patterns to match a string[/I]

[h2]Number Format[/h2]
[B]<numberformat type="NUMBER">5945</numberformat> [I]"5,945"[/I][/B]
[I]This allows you to format numbers using localized settings

[IMG]http://i.mvdw-software.com/2017-12-29_16-24-09.png[/IMG]
[/I]
[B][U]Arguments:[/U]
type: [/B]Type of number. Choose between "NUMBER","INTEGER","PERCENTAGE","CURRENCY"
[B]locale:[/B] The ISO locale (example: en-US, en-UK, nl-BE). Numbers are formatted differently based on the country. You can also use the [U]{locale}[/U] placeholder to use the player's minecraft client locale

[h2]Fade in[/h2]
[B]<fadein>&f&lFeatherBoard</fadein>[/B]
[I]Creates a fade in effect

[h2]Fade out[/h2]
[B]<fadeout>&f&lFeatherBoard</fadeout>[/B]
[I]Creates a fade out effect[/I][/I]

[h2]Glow[/h2]
[B]<glow repeatfirstframe="10" startglowcolor="&b&l&o" glowcolor="&1&l" endglowcolor="&b&l&o" normalcolor="&a&l">CREATIVE</glow>[/B]
[COLOR=rgb(0, 0, 0)][I]Creates a glow effect[/I]
[B][U]Arguments:[/U][/B]
[B]repeatfirstframe:[/B] The amount of times the first frame (without glow) has to be shown
[B]startglowcolor:[/B] The glow prefix colors (usually a lighter color)
[B]endglowcolor:[/B] Same as startglowcolor but behind the middle glow
[B]glowcolor:[/B] The middle glow color
[B]normalcolor:[/B] The normal color
[B]stop:[/B] Stop at a specific moment (Advanced, can be used to only let the glow go halfway)
[B][U]Screenshot:[/U][/B]
[B][IMG]http://www.mvdw-software.com/wp-content/uploads/2015/08/glow.gif[/IMG] [/B][/COLOR]


[COLOR=#000000][h2]Translate[/h2]
[B]<translate from="en" to="nl">Hello how are you?</translate> [/B][I][B]"Hallo hoe gaat het?"[/B][/I]
[I]Translate text with Google Translate. Use the {locale_short} placeholder inside the "to" argument to translate[/I]
[I]it to the players minecraft language. Use the {countrycode} placeholder inside the "to" argument to translate it to the main language of the country the player is joining from.[/I]
[B][U]Arguments:[/U][/B]
[B]to: [/B]The language to translate to (2 letters)
[B]from: [/B]The language to translate from (2 letters)
[B][U]Video:[/U][/B]
[MEDIA=youtube]U0yknvBlSKY[/MEDIA][/COLOR]

[h2]Calculator[/h2]
[B]<calc>5+9-3</calc>[/B]
[I]Does a calculation (more efficient than the script tag)[/I]
[B][U]Arguments[/U]
round: [/B]Rounds the result (<calc round>5/3</calc>)

[h2]Whenrange effect[/h2]
[B]<whenrange begin="0" end="10" value="{health}">BELOW 10</whenrange>[/B]
[I]Checks if the value argument is between begin and end (included) and shows the text between the tags if so[/I]
[B][U]Arguments[/U]
begin: [/B]Starting value of the range
[B]end: [/B]Ending value of the range
[B]value: [/B]Value to check the range on

[h2]Rainbow Effect[/h2]
[COLOR=#0000ff]Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated[/COLOR]
[B][COLOR=rgb(0, 0, 0)]<rainbow>Text here</rainbow>[/COLOR][/B]
[COLOR=rgb(0, 0, 0)][I]Creates a rainbow effect with the text between the tags[/I][/COLOR]

[h2]Blink Effect[/h2]
[COLOR=#0000ff]Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated[/COLOR]
[B][COLOR=rgb(0, 0, 0)]<blink>Text here</blink>[/COLOR][/B]
[COLOR=rgb(0, 0, 0)][I]Lets the text in the tags blink once (on / off) meant for loop[/I][/COLOR]

[h2]Scroll Effect[/h2]
[COLOR=#0000ff]Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated[/COLOR]
[COLOR=rgb(0, 0, 0)][B]<scroll>&aA very long text &bhere that will scroll</scroll>[/B]
[I]The text will scroll with a default length of 16. You can configure this[/I]
[B][U]Arguments:[/U][/B]
[B]width: [/B]Width of the scroll (Default 16)
[B]space: [/B]Spaces between the beginning and ending[/COLOR]
[COLOR=#000000][B]single:[/B] true/false, set this to true when you switch between scrolls (starts with whitespace)
[B]minwidth:[/B] This is the minimum width before the text starts scrolling. Useful for dynamic content that may fit on a scoreboard without scrolling[/COLOR]
[COLOR=rgb(0, 0, 0)][B][U]Example:[/U][/B]
[B]<scroll width=50 space=50>This is a test</scroll>[/B][/COLOR]

[h2]Wave Effect[/h2]
[COLOR=#0000ff]Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated such as ConditionPerms or InteractiveChat3[/COLOR]
[COLOR=rgb(0, 0, 0)][I][B]<wave>Text here</wave>[/B][/I]
[I]A bold wave that puts every letter in bold in a wave[/I][/COLOR]

[h2]Delay/Repeat Effect[/h2]
[COLOR=#0000ff]Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated[/COLOR]
[COLOR=rgb(0, 0, 0)][B][I]<delay times="20">This text will be delayed 20 times the interval</delay>[/I][/B]
[B][I]<repeat times="20">This text will repeat 20 times the interval</repeat>[/I][/B]
[I]Text inside the delay will delay itself X times other then <repeat> the delay will not refresh placeholders while repeat will.[/I]
[B][U]Arguments:[/U][/B]
[B]times:[/B] Times the messages will be repeated[/COLOR]

[h2]Lowercase[/h2]
[COLOR=rgb(0, 0, 0)][I][B]<lowercase>{placeholderhere} TestTEst</lowercase>[/B][/I]
[I]Puts all text and placeholders in lowercase[/I][/COLOR]

[h2]Uppercase[/h2]
[COLOR=rgb(0, 0, 0)][B]<uppercase>{placeholderhere} TestTEst</uppercase>[/B]
Puts all text and placeholders in uppercase[/COLOR]

[h2]Substring[/h2]
[COLOR=rgb(0, 0, 0)][B]<substring begin="0" end="1">Test</substring>[/B]
Allows you to split any text or placeholder.
[B][U]Arguments:[/U][/B]
[B]begin [B]<optional>[/B]:[/B] The begin of the substring (starting from 0)
[B]end <optional>:[/B] The end of the substring[/COLOR]

[h2]Upsidedown[/h2]
[COLOR=rgb(0, 0, 0)][B]<upsidedown>Test</upsidedown>[/B]
[I]Turns text upside down (buggy)[/I][/COLOR]

[h2]Script (Javascript)[/h2]
[COLOR=rgb(0, 0, 0)][B]<script>5+3</script>[/B]
[I]This is a javascript tag allowing you to do calculations (with placeholders) and other cool things like Math.*,...[/I][/COLOR]

[h2]Round[/h2]
[COLOR=rgb(0, 0, 0)][I][B]<round>5.015</round>[/B][/I]
[I][B]<round decimals="2">5.4999</round>[/B][/I]
[I]Rounds a value[/I]
[B][U]Arguments:[/U][/B]
[B]decimals <options>: [/B]The amount of decimals to round to[/COLOR]

[h2]Length[/h2]
[COLOR=rgb(0, 0, 0)][B]<length>Test</length> (4)[/B]
[I]Gets the length of a string between[/I][/COLOR]

[h2]For itteration[/h2]
[COLOR=#0000ff]Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated[/COLOR]
[B][B][COLOR=rgb(0, 0, 0)]<for times="5">Number $i</for>[/COLOR][/B][/B]
[COLOR=rgb(0, 0, 0)][B]<for times="5" variable="x">Number $x</for>[/B]
[I]Creates a for itteration can be combined with length this[/I]
[I]tag is [U]under construction and will eventually be used[/U] to do something like:[/I][/COLOR]

[COLOR=rgb(0, 0, 0)][B]<for times="<length>{player}</length>"><substring begin="0" end="$i">{player}</substring></for>[/B]
M
Ma
Max
Maxi
Maxim[/COLOR]

[h2]Trim (remove spaces)[/h2]
[COLOR=rgb(0, 0, 0)][B]<trim> Monkey </trim> "[/B][I][B]Monkey"[/B][/I]
[I]Trim spaces on the front and back of the text between.[/I][/COLOR]

[h2]RPAD (Right padding)[/h2]
[COLOR=rgb(0, 0, 0)][B]<rpad width="50">Hello!</rpad>[/B]
[I]Pad a word or phrase to the right side (default with spaces)[I]. Does not support colors or effects[/I][/I]
[B][U]Arguments:[/U][/B]
[B]width: The width to pad[/B]
[B]character: The character to pad with[/B][/COLOR]

[h2]LPAD (Left padding)[/h2]
[COLOR=rgb(0, 0, 0)][B]<lpad width="50">Hello!</lpad>[/B]
[I]Pad a word or phrase to the left side (default with spaces)[I]. Does not support colors or effects[/I][/I]
[B][U]Arguments:[/U][/B]
[B]width: The width to pad[/B]
[B]character: The character to pad with[/B][/COLOR]

[COLOR=rgb(0, 0, 0)][h2]Center[/h2]
[COLOR=rgb(0, 0, 0)][B]<center width="50">Hello!</center>[/B]
[I]Pad a word or phrase to the center. Does not support colors or effects[/I]
[U][B]Arguments:[/B][/U]
[B]width: The width to pad[/B]
[B]character: The character to pad with[/B][/COLOR][/COLOR]

[h2]Reverse[/h2]
[COLOR=rgb(0, 0, 0)][B]<reverse>Hello</reverse>[/B] [I][B]"olleH"[/B][/I]
[I]Put the text between the tags in a reverse order[/I][/COLOR]

[COLOR=rgb(0, 0, 0)][h2]Colors[/h2] [/COLOR]
[COLOR=#000000][B]<colors>&5Test&3&l Hello</colors> [I]"&3&L"[/I][/B]
[I]Gets the colors + effects from the string inside[/I][/COLOR]

[COLOR=#000000][h2]Other player[/h2]
[B]<otherplayer player="SomePlayer">{playername}</otherplayer> [I]"SomePlayer"[/I][/B]
[I]Translates the placeholders from another player. Action placeholders will be invoked as the other player[/I][/COLOR]

[COLOR=#000000][h2]URL[/h2]
[B]<url>[URL='http://www.minecraft.net/haspaid.jsp?user={playername}</url>']www.minecraft.net/haspaid.jsp?user={playername}</url>[/URL][/B]
[I]Gets the result of the url (cache 5min default)[/I]
[U][B]Arguments[/B][/U]
[U][B]cache[/B][/U]: The cache timeout before refreshing the URL result in MILLISECONDS (default 300000 = 5 min)[/COLOR]

[COLOR=#000000][h2]Epoch convert[/h2]
[B]<epochconvert from-milliseconds="[/B][/COLOR][B][COLOR=rgb(0, 0, 0)]1453680000[/COLOR][/B][COLOR=#000000][B]">dd/MM/yyyy</epochconvert> [/B][I][B]"25/01/2016"[/B][/I]
[I]Convert Epoch unix timestamp (in miliseconds!) to a readable format.[/I][/COLOR]

[COLOR=rgb(0, 0, 0)][B][U]Arguments:[/U][/B]
[B]from-nanoseconds: [/B]Convert from a specific DATE/TIME in nano seconds (UNIX TIME)
[B]from-milliseconds: [/B]Convert from a specific DATE/TIME in milliseconds ( [URL='http://www.epochconverter.com/']http://www.epochconverter.com[/URL] )
[B]from-seconds:[/B] Convert from a specific DATE/TIME in seconds[/COLOR]

[COLOR=rgb(0, 0, 0)][U][B]Formatting:[/B][/U]
The formatting inside uses normal date formatting.[/COLOR]
[IMG]http://i.mvdw-software.com/23-01-2016_21-47-36.png[/IMG]
[COLOR=rgb(0, 0, 0)]One important thing is that NORMAL text like "months" or "days" or whatever will need to be surrounded by single quotes like the example above.[/COLOR]


[COLOR=#000000][h2]Whenempty effect[/h2] [/COLOR]
[B]<whenempty value="[B]{factions_faction_name}[/B]">[B]You have no faction[/B]</whenempty>[/B]
[I]Show a specific value when the text between the tags is empty.[/I]

[COLOR=#000000][h2]Single run effect[/h2]
[B]<single>You only see this once</single>[/B]
[I]Surrounding a line with this will make it only appear once in the animation loop.[/I][/COLOR]

[COLOR=#000000][h2]Decision output[/h2]
[B]<decision whentrue="You are flying" whenfalse="You are on the ground">{isflying}</decision>[/B]
[I]Checks if the text between the tags is "true" or "false" and shows a different output depending on that output[/I][/COLOR]

[COLOR=#000000][h2]Full width latin[/h2]
[B]<fullwidth>Test</fullwidth>[/B]
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
[I]Converts the text to Latin full width[/I][/COLOR]

[COLOR=#000000][h2]Command prompt[/h2] [/COLOR]
[COLOR=#0000b3]Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated[/COLOR]
[COLOR=#000000][B]<cmd repeatmiddle="10">Test</cmd>[/B]
[I]Acts as a typewriter but with a blinking _ behind it while typing so it looks like a 90's command prompt. Placeholders are supported, colors aren't[/I]
[B][U]Arguments:[/U][/B]
[B]repeatstart:[/B] (number) The time it will show a blinking _ before actually typing
[B]repeatmiddle:[/B] (number) The time it stays blinking when the text is complete
[B]backwards:[/B] (true/false) Do you want to use backspace after the text is written[/COLOR]


[COLOR=#000000][h2]Progress bar[/h2]
[B]<progressbar max="100">50</progressbar> [/B][I]Progressbar will be at 50% (half)[/I]
[B]<progressbar max="20">{health}</progressbar> [/B][I]Progressbar will be 20 long and filled depending on the health variable[/I]
[B]<progressbar max="20" scale="10">{health}</progressbar> [/B][I]Same as above, but it is scaled to 10 long, meaning 10 health would scale to 5 (20 health to 10)[/I]
[B]<progressbar max="20" scale="10" done="&c+" remaining="&8-">{health}</progressbar> [/B][I]Same as above, but the default | are changed with a red + when your health is full, or a gray - for the health you lost[/I]
[B][U]Arguments:[/U][/B]
[B]max: [/B](number) Maximum value the number between the tags can be
[B]scale:[/B] (number) The virtual max. The value will scale down depending on the max
[B]done: [/B]The text to show for progress that is done
[B]remaining:[/B] The text to show for the progress that is remaining (for example if your value is 80 to 100, than 20 of it is "remaining")
NOTE: The done and remaining can only contain 1 color and 1 effect.[/COLOR]


[COLOR=#000000][h2]Countdown timer[/h2] [/COLOR]
[B][COLOR=#000000]<countdown from-milliseconds="1453680000">d 'days' h 'hours'</countdown>[/COLOR][/B]
[COLOR=#000000][I]Counts down to a few days in the future: 2 days 3 hours[/I][/COLOR]

[COLOR=#000000][I]This countdown effect works as a date! It will not change to 51 hours if you only put in "h" in the example[/I]
[I]above.[/I][/COLOR]

[COLOR=#000000][B][U]Arguments:[/U][/B]
[B]from-nanoseconds: [/B]Count down to a specific DATE/TIME in nano seconds (UNIX TIME)
[B]from-milliseconds: [/B]Count down to a specific DATE/TIME in milliseconds ( [URL]http://www.epochconverter.com[/URL] )
[B]from-seconds:[/B] Count down to a specific DATE/TIME in seconds
[B]defaultmessage:[/B] Default message to show when countdown has passed (default empty) for example "HAPPY NEW YEAR!"[/COLOR]

[COLOR=#000000][U][B]Formatting:[/B][/U]
The formatting inside uses normal date formatting. [/COLOR]
[IMG]http://i.mvdw-software.com/23-01-2016_21-47-36.png[/IMG]
[COLOR=#000000]One important thing is that NORMAL text like "months" or "days" or whatever will need to be surrounded by single quotes like the example above.[/COLOR]


[COLOR=#000000][h2]Custom effects[/h2] [/COLOR]
[COLOR=#0000ff]Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated[/COLOR]
[COLOR=#000000]Upon starting the plugin for the first time a folder[B] effects[/B] will be created. Inside you will find a [B]customeffects.yml[/B] file where you can create custom effects.[/COLOR]

[COLOR=#000000][CODE]# --------------------------- #
# Custom Effects
# --------------------------- #

# DO NOT CHANGE THIS VERSION
config: 1

effects:
warning: # <warning messagecolor=c>Message here</warning>
# Optional arguments
arguments:
messagecolor: 'c' # Use 'c' as the default value for messagecolor
# Use {message} as the placeholder for the text that is between the tags
text:
- '&e&lWARNING: &{messagecolor}{message}'
- '&6&lWARNING: &{messagecolor}{message}'[/CODE][/COLOR]