Merge pull request #532 from Morphan1/master

Fix silly mistake in Create command
Prevent logical errors in IF command, fixes #515

- a double compared to not-a-double should not pass (Always fail that)
[for #515 ]
... idea for future: Certain doubles could return true (EG, 1 or higher
passes, below 1 fails?)
- also prevent list arguments like "li@3||2" from becoming "li@3OR2" by
only changing bridges and comparisonoperators when actually needed.
[Related to #519 ]
Prevent accidental tag alternatives

if you flag global 'potato' to 'li@3||x', then use
'<<global.flag[potato]>>', it would show 'x' because '||' looks like an
alternative.
This will prevent that issue and make that tag return 'li@3||x' as it
should.
[For #519 ]
Prevent lists misreading the tag-alt escaping

From the previous commit, <<global.flag[potato]>.get[3]> wouldn't work
because dList didn't know about the escape symbol. This corrects that.

... I'd like to take a moment to thank the creators of ASCII for
providing all these useful control symbols.
Improve debugging (Exceptions...)

- 'Filled tag x with y' will now watch out for tag escape symbols and
display them correctly.
- add dB.log(DebugElement) to replicate the echoDebug's similar
functionality
- change all 'exception.printStackTraces' to call a dB function that
manages it correctly and singularly.
Record exceptions

Exceptions will now be included in 'denizen debug -r' logs.
Add <entity.velocity> and <location.vector_length>

- <entity.velocity> for the movement velocity of entities. Not so great
with players.
- <location.vector_length> for more location/vector mathematics.
Fix 'matches integer' comparable

Integers and doubles are different: Keep them separate (Until
mathematical comparison)!
Before this fix, 'if 3 matches integer' would fail because it reads '3'
as '3.0'
Minimize element.substring errors + fix math

This will prevent stacktraces / failure to run if substrings are used
with really *really* wrong input indexes. (There are situations where it
can happen out of the scripters control, can't blame them)
It also corrects the counting of the end index (the character at
endIndex is not included in Java)... it should be in dScript. This way
substring[1,1] returns one letter rather than nothing at all. This is
generally what people logically expect to occur, though there may be
trouble with 'endIndex - startIndex' not being equal to the returned
length... anyone who gets that far in a calculation can figure out to
add 1.
Add to the command registry

Just some more information for the commandRegistry, we really need to
get more documentation set up!
Merge pull request #533 from mcmonkey4eva/master

New pull request: Fixing things!
Update the 'log' command

- fully updates the log command to 0.9 styling
- fixes some argument interpretation bugs in 'log'
- adds a new 'none' type to 'log' (No type/timestamp)
- updates the meta information for 'log'
Fix a few typos

- the wrong function was being used to get a directory while defaulting
Denizen folders (My bad)
- an older command being displayed in dB.echoError() (I hadn't realized
'denizen stacktrace' was removed)
- some autoformatting
Merge branch 'master' of https://github.com/aufdemrand/Denizen
Disconnect from the Citizens Script Repo

If this ever worked, it stopped working at least several months ago,
maybe a year.
Nobody really expected it work... I recall auf agreeing that it should
be deleted (a long time ago, before I had even committed to Denizen...
would've done it earlier but I forgot by the time I had started
committing)
If you want proof it's old, just look at the '/citizens denizen repo
load'...

(+ Downloading any random script with a matching name and running it,
without even being able to look over the script first, is now very
dangerous with the current power of Denizen)
Merge pull request #534 from mcmonkey4eva/master

Update some things, fix some minor things...
Performance optimisations and cleanup
Cleanup and optimise parts of dB
Update the trigger command

Simple commit, just updating the Trigger command to the 0.9 standards
This also fixes a bug in which the 'cooldown:' argument didn't work at
all. (NPE on usage, due to improper argument handling)
Remove empty CommandExecutor error message

in some situations, this message is empty... don't show it if so.
(EX: not enough arguments exception uses an empty message)