worldwalker: added destination message toggle

This commit is contained in:
Justin 2020-12-07 21:52:58 +11:00
parent bf241cef4e
commit 77d56b6167
3 changed files with 16 additions and 3 deletions

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "2.5.0"
version = "2.5.1"
project.extra["PluginName"] = "iWorld Walker Plugin"
project.extra["PluginDescription"] = "Illumine - World Walker plugin"

View File

@ -573,6 +573,17 @@ public interface iWorldWalkerConfig extends Config
return false;
}
@ConfigItem(
keyName = "sendMsg",
name = "Send message on destination",
description = "Enables or Disables the message when you arrive at your destination",
position = 145
)
default boolean sendMsg()
{
return true;
}
@ConfigItem(
keyName = "enableUI",
name = "Enable UI",

View File

@ -378,8 +378,10 @@ public class iWorldWalkerPlugin extends Plugin
{
if (mapPoint != null)
{
utils.sendGameMessage("Arrived at Map destination: " + mapPoint.getX() + ", " +
mapPoint.getY() + ", " + mapPoint.getPlane() + " - stopping World Walker");
if (config.sendMsg()) {
utils.sendGameMessage("Arrived at Map destination: " + mapPoint.getX() + ", " +
mapPoint.getY() + ", " + mapPoint.getPlane() + " - stopping World Walker");
}
resetVals();
return;
}