MVdW Effects - Historical

Applied By Awesomebay: Mar 12, 2018 at 3:43 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.


Number Format(top)

<numberformat type="NUMBER">5945</numberformat> "5,945"
This allows you to format numbers using localized settings

[​IMG]

Arguments:
type:
Type of number. Choose between "NUMBER","INTEGER","PERCENTAGE","CURRENCY"
locale: The ISO locale (example: en-US, en-UK, nl-BE). Numbers are formatted differently based on the country. You can also use the {locale} placeholder to use the player's minecraft client locale

Fade in(top)

<fadein>&f&lFeatherBoard</fadein>
Creates a fade in effect

Fade out(top)

<fadeout>&f&lFeatherBoard</fadeout>
Creates a fade out effect


Glow(top)

<glow repeatfirstframe="10" startglowcolor="&b&l&o" glowcolor="&1&l" endglowcolor="&b&l&o" normalcolor="&a&l">CREATIVE</glow>
Creates a glow effect
Arguments:
repeatfirstframe: The amount of times the first frame (without glow) has to be shown
startglowcolor: The glow prefix colors (usually a lighter color)
endglowcolor: Same as startglowcolor but behind the middle glow
glowcolor: The middle glow color
normalcolor: The normal color
stop: Stop at a specific moment (Advanced, can be used to only let the glow go halfway)
Screenshot:
[​IMG]



Translate(top)

<translate from="en" to="nl">Hello how are you?</translate> "Hallo hoe gaat het?"
Translate text with Google Translate. Use the {locale_short} placeholder inside the "to" argument to translate
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.
Arguments:
to: The language to translate to (2 letters)
from: The language to translate from (2 letters)
Video:


Calculator(top)

<calc>5+9-3</calc>
Does a calculation (more efficient than the script tag)
Arguments
round:
Rounds the result (<calc round>5/3</calc>)

Whenrange effect(top)

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

Rainbow Effect(top)

Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated
<rainbow>Text here</rainbow>
Creates a rainbow effect with the text between the tags

Blink Effect(top)

Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated
<blink>Text here</blink>
Lets the text in the tags blink once (on / off) meant for loop

Scroll Effect(top)

Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated
<scroll>&aA very long text &bhere that will scroll</scroll>
The text will scroll with a default length of 16. You can configure this
Arguments:
width: Width of the scroll (Default 16)
space: Spaces between the beginning and ending

single: true/false, set this to true when you switch between scrolls (starts with whitespace)
minwidth: This is the minimum width before the text starts scrolling. Useful for dynamic content that may fit on a scoreboard without scrolling

Example:
<scroll width=50 space=50>This is a test</scroll>


Wave Effect(top)

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
<wave>Text here</wave>
A bold wave that puts every letter in bold in a wave


Delay/Repeat Effect(top)

Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated
<delay times="20">This text will be delayed 20 times the interval</delay>
<repeat times="20">This text will repeat 20 times the interval</repeat>
Text inside the delay will delay itself X times other then <repeat> the delay will not refresh placeholders while repeat will.
Arguments:
times: Times the messages will be repeated


Lowercase(top)

<lowercase>{placeholderhere} TestTEst</lowercase>
Puts all text and placeholders in lowercase


Uppercase(top)

<uppercase>{placeholderhere} TestTEst</uppercase>
Puts all text and placeholders in uppercase


Substring(top)

<substring begin="0" end="1">Test</substring>
Allows you to split any text or placeholder.
Arguments:
begin <optional>: The begin of the substring (starting from 0)
end <optional>: The end of the substring


Upsidedown(top)

<upsidedown>Test</upsidedown>
Turns text upside down (buggy)


Script (Javascript)(top)

<script>5+3</script>
This is a javascript tag allowing you to do calculations (with placeholders) and other cool things like Math.*,...


Round(top)

<round>5.015</round>
<round decimals="2">5.4999</round>
Rounds a value
Arguments:
decimals <options>: The amount of decimals to round to


Length(top)

<length>Test</length> (4)
Gets the length of a string between


For itteration(top)

Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated
<for times="5">Number $i</for>
<for times="5" variable="x">Number $x</for>
Creates a for itteration can be combined with length this
tag is under construction and will eventually be used to do something like:


<for times="<length>{player}</length>"><substring begin="0" end="$i">{player}</substring></for>
M
Ma
Max
Maxi
Maxim


Trim (remove spaces)(top)

<trim> Monkey </trim> "Monkey"
Trim spaces on the front and back of the text between.


RPAD (Right padding)(top)

<rpad width="50">Hello!</rpad>
Pad a word or phrase to the right side (default with spaces). Does not support colors or effects
Arguments:
width: The width to pad
character: The character to pad with


LPAD (Left padding)(top)

<lpad width="50">Hello!</lpad>
Pad a word or phrase to the left side (default with spaces). Does not support colors or effects
Arguments:
width: The width to pad
character: The character to pad with


Center(top)

<center width="50">Hello!</center>
Pad a word or phrase to the center. Does not support colors or effects
Arguments:
width: The width to pad
character: The character to pad with


Reverse(top)

<reverse>Hello</reverse> "olleH"
Put the text between the tags in a reverse order


Colors(top)


<colors>&5Test&3&l Hello</colors> "&3&L"
Gets the colors + effects from the string inside


Other player(top)

<otherplayer player="SomePlayer">{playername}</otherplayer> "SomePlayer"
Translates the placeholders from another player. Action placeholders will be invoked as the other player


URL(top)

<url>www.minecraft.net/haspaid.jsp?user={playername}</url>
Gets the result of the url (cache 5min default)
Arguments
cache: The cache timeout before refreshing the URL result in MILLISECONDS (default 300000 = 5 min)


Epoch convert(top)

<epochconvert from-milliseconds="
1453680000">dd/MM/yyyy</epochconvert> "25/01/2016"
Convert Epoch unix timestamp (in miliseconds!) to a readable format.


Arguments:
from-nanoseconds: Convert from a specific DATE/TIME in nano seconds (UNIX TIME)
from-milliseconds: Convert from a specific DATE/TIME in milliseconds ( http://www.epochconverter.com )
from-seconds: Convert from a specific DATE/TIME in seconds


Formatting:
The formatting inside uses normal date formatting.

[​IMG]
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.


Whenempty effect(top)


<whenempty value="{factions_faction_name}">You have no faction</whenempty>
Show a specific value when the text between the tags is empty.

Single run effect(top)

<single>You only see this once</single>
Surrounding a line with this will make it only appear once in the animation loop.


Decision output(top)

<decision whentrue="You are flying" whenfalse="You are on the ground">{isflying}</decision>
Checks if the text between the tags is "true" or "false" and shows a different output depending on that output


Full width latin(top)

<fullwidth>Test</fullwidth>
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
Converts the text to Latin full width


Command prompt(top)


Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated
<cmd repeatmiddle="10">Test</cmd>
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
Arguments:
repeatstart: (number) The time it will show a blinking _ before actually typing
repeatmiddle: (number) The time it stays blinking when the text is complete
backwards: (true/false) Do you want to use backspace after the text is written



Progress bar(top)

<progressbar max="100">50</progressbar> Progressbar will be at 50% (half)
<progressbar max="20">{health}</progressbar> Progressbar will be 20 long and filled depending on the health variable
<progressbar max="20" scale="10">{health}</progressbar> Same as above, but it is scaled to 10 long, meaning 10 health would scale to 5 (20 health to 10)
<progressbar max="20" scale="10" done="&c+" remaining="&8-">{health}</progressbar> Same as above, but the default | are changed with a red + when your health is full, or a gray - for the health you lost
Arguments:
max: (number) Maximum value the number between the tags can be
scale: (number) The virtual max. The value will scale down depending on the max
done: The text to show for progress that is done
remaining: 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.



Countdown timer(top)


<countdown from-milliseconds="1453680000">d 'days' h 'hours'</countdown>
Counts down to a few days in the future: 2 days 3 hours

This countdown effect works as a date! It will not change to 51 hours if you only put in "h" in the example
above.


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


Formatting:
The formatting inside uses normal date formatting.

[​IMG]
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.


Custom effects(top)


Animation effect: this effect creates multiple results creating an animation, it can not be used in plugins that are not animated
Upon starting the plugin for the first time a folder effects will be created. Inside you will find a customeffects.yml file where you can create custom effects.

Code (Text):
# --------------------------- #
# 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}'