Added:
- Hanging event + every spigot event value. The hanging event deals with Item frames, fence leashes or painting.
- Condition to test if a player can see a player with the protocol hidden syntax.
- Statistics support (Requested by
@Blueyescat)
- Blocks outlining chunk
Changed:
- Changed from MCstats to
bStats for metrics
https://bstats.org/plugin/bukkit/Skellett
Fixed:
- A critical bug where the SkellettProxy.yml port would reset all the time if it wasn't a port that Skellett liked.
- Fixed the SkellettProxy port not accepting anything but 4 digit ports. You can now put any port you want.
- Add page with string being split into mulitple pages (Reported by
@Blueyescat)
- Fixed pages being added to random items throwing errors
- Harmless MySQL null pointers
- Alot of minor bug fixes
- 6+ null pointers
Syntax:
Code (skript (Unknown Language)):
Events:
[on] (unhang|[entity] unhung)
#The entity being unhung
event-entity
#Gets the entity removing the hung entity
[the] (hung|hang)[(ed|ing)] remover [entity]
#Returns the cause of this event
[the] (hung|hang)[(ed|ing)] cause
[on] (hang|[entity] hung)
#The player hanging the entity
event-player
#The hanged entity
event-entity
#The block an entity was hung on
event-block
[on] ([un]hang[ing]|[un]hung) [entity] (remove|break|destroy)
#Gets the entity removing the hung entity
[the] (hung|hang)[(ed|ing)] remover [entity]
#The entity being destroyed
event-entity
#Returns the cause of this event
[the] (hung|hang)[(ed|ing)] cause
Conditions:
#Checks if the player is protocol hidden to another player using the reveal and hide effects
[player] %player% (1¦can|2¦can([ ]no|')t) see [player] %player%
Expressions:
#Get the statistic of anything from a player
#Info if the Statistic requires a Material or Entity. Insert that data into the appropriate string provided.
[the] stat[istic][s] %string% (of|from) %player% [[(with|from|for|of)] entity[[ ]type] %-string%] [[(with|from|for|of)] material %-string%]
#Get the locations outlining a chunk
[(the|all)] [of] [the] blocks [in [a[n]]] (around|outlin(e|ing)) [of] chunk %chunk% [[at] [y(-| )coordinate] %-number%]
Info:
Statistics:
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html
EntityTypes:
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html
Materials:
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
Test script:
Code (skript (Unknown Language)):
command /stats <text> <text> [<integer>]:
usage: /stats (get|set|add|subtract|reset) (statistic) [(value)]
trigger:
loop enum values of statistic:
if "%loop-value%" is arg 2:
set {_found} to true
if {_found} is true:
if arg 1 is "set":
if arg 3 is set:
set statistic "%arg 2%" from player to arg 3
else if arg 1 is "add":
if arg 3 is set:
add arg 3 to statistic "%arg 2%" from player
else if arg 1 is "subtract":
if arg 3 is set:
subtract arg 3 from statistic "%arg 2%" from player
else if arg 1 is "reset":
reset statistic "%arg 2%" from player
set {_stat} to statistic "%arg 2%" from player
broadcast "%{_stat}%"
else:
message "&c%arg 2% is not a statistic"
command /statMaterial:
trigger:
set {_stat} to statistic "DROP" from player from material "ROTTEN_FLESH"
broadcast "%{_stat}%"
command /statEntity:
trigger:
set {_stat} to statistic "KILL_ENTITY" from player from entity "ZOMBIE"
broadcast "%{_stat}%"
command /blocks <boolean>:
trigger:
set {_chunk} to chunk at player's location
if arg 1 is false:
loop all blocks outlining chunk {_chunk}:
set loop-block to diamond block
else:
loop all blocks outlining chunk {_chunk} at y-coordinate of player:
set loop-block to diamond block
wait a tick
on unhang:
if unhang cause is not "ENTITY":
cancel event