From 053bd0e561daab074fe5cd7caed2c256323b0dd2 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Wed, 10 Aug 2011 22:37:41 -0500 Subject: [PATCH] Fix typo in 'sendposition' setting - allow both 'sendposition' and 'sendpositon' in case someone worked around it --- src/main/java/org/dynmap/ClientUpdateComponent.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/dynmap/ClientUpdateComponent.java b/src/main/java/org/dynmap/ClientUpdateComponent.java index 97fa8210..14173101 100644 --- a/src/main/java/org/dynmap/ClientUpdateComponent.java +++ b/src/main/java/org/dynmap/ClientUpdateComponent.java @@ -42,7 +42,9 @@ public class ClientUpdateComponent extends Component { s(jp, "account", p.getName()); /* Don't leak player location for world not visible on maps, or if sendposition disbaled */ DynmapWorld pworld = MapManager.mapman.worldsLookup.get(p.getWorld().getName()); - if(configuration.getBoolean("sendpositon", true) && (pworld != null) && pworld.sendposition) { + /* Fix typo on 'sendpositon' to 'sendposition', keep bad one in case someone used it */ + if(configuration.getBoolean("sendposition", true) && configuration.getBoolean("sendpositon", true) && + (pworld != null) && pworld.sendposition) { s(jp, "world", p.getWorld().getName()); s(jp, "x", pl.getX()); s(jp, "y", pl.getY());