From ce999dd53765bd9cf5e7965a4746787b0ac3196c Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 26 Jun 2020 18:42:41 +0100 Subject: [PATCH] far wand: notify player when setting pos1 and pos2 --- CHANGELOG.md | 1 + worldeditadditions_farwand/lib/farwand.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c18fb99..1970e0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/worldeditadditions_farwand/lib/farwand.lua b/worldeditadditions_farwand/lib/farwand.lua index 943744f..4d41eac 100644 --- a/worldeditadditions_farwand/lib/farwand.lua +++ b/worldeditadditions_farwand/lib/farwand.lua @@ -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