worldwalker: added destination message toggle
This commit is contained in:
parent
bf241cef4e
commit
77d56b6167
|
@ -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"
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue