mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-01 06:33:38 +01:00
Merge pull request #401 from mikeprimm/master
Fix typo in 'sendposition' setting - allow both 'sendposition' and 'sendpositon' in case someone worked around it
This commit is contained in:
commit
49b38c10b7
@ -42,7 +42,9 @@ public class ClientUpdateComponent extends Component {
|
|||||||
s(jp, "account", p.getName());
|
s(jp, "account", p.getName());
|
||||||
/* Don't leak player location for world not visible on maps, or if sendposition disbaled */
|
/* Don't leak player location for world not visible on maps, or if sendposition disbaled */
|
||||||
DynmapWorld pworld = MapManager.mapman.worldsLookup.get(p.getWorld().getName());
|
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, "world", p.getWorld().getName());
|
||||||
s(jp, "x", pl.getX());
|
s(jp, "x", pl.getX());
|
||||||
s(jp, "y", pl.getY());
|
s(jp, "y", pl.getY());
|
||||||
|
Loading…
Reference in New Issue
Block a user