Skip to content

SkDynmap v1.2

Compare
Choose a tag to compare
@Skylyxx Skylyxx released this 17 Mar 18:21
· 24 commits to master since this release
79230d7

SkDynmap V1.2

SkDynmap v1.2 adds support of chunks for areas locations, with the corners of %chunks% expression. This version add also players visibility support. Finally, it add an event to detect renders.

Principal changes:

Adding support of chunks:

corners of %chunks% expression:

command /makechunks:
	trigger:
		make area:
			set id of area to "chunk_id"
			set name of area to "Chunks"
			set locations of area to corners of {chunk::*}
		create area from last area
		send "Ok!"
Adding support of players visibility:

%player's% visibility expression:

command /show:
	trigger:
		set player's visibility to true
		send "You are now visible on the map!"

%player% is visible condition:

command /isvisible <player>:
	trigger:
		if arg-1 is visible:
			send "yes"
		else:
			send "no"
Adding event that detects renders

[on] [[sk]dynmap] [map] render event:

on render:
    if  {skdynmap-disable}  is  true:
	    cancel event
		send "The render event has been cancelled !"  to console

For others questions, you can contact me on Skript Chat's discord: SkDynmap's channel