far wand: notify player when setting pos1 and pos2

This commit is contained in:
Starbeamrainbowlabs 2020-06-26 18:42:41 +01:00
parent 20a026724f
commit ce999dd537
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 3 additions and 0 deletions

View File

@ -4,3 +4,4 @@ It's about time I started a changelog! This will serve from now on as the master
## v1.8 (unreleased)
- Update `//multi` to display human readable times (e.g. `2.11mins` instead of `126600ms`)
- Far wand: Notify player when setting pos1 and pos2

View File

@ -3,6 +3,7 @@ local function set_pos1(name, pos)
-- print("[set_pos1]", name, "("..pos.x..", "..pos.y..", "..pos.z..")")
worldedit.pos1[name] = pos
worldedit.mark_pos1(name)
worldedit.player_notify(name, "pos1 set to "..worldeditadditions.vector.tostring(pos))
else
-- print("[set_pos1]", name, "nil")
end
@ -12,6 +13,7 @@ local function set_pos2(name, pos)
-- print("[set_pos2]", name, "("..pos.x..", "..pos.y..", "..pos.z..")")
worldedit.pos2[name] = pos
worldedit.mark_pos2(name)
worldedit.player_notify(name, "pos2 set to "..worldeditadditions.vector.tostring(pos))
else
-- print("[set_pos2]", name, "nil")
end