Changed variable names to reflect others.
Updated readme to reflect changes
This commit is contained in:
parent
f84b9d4bde
commit
5780bc89f0
2 changed files with 25 additions and 24 deletions
43
readme.txt
43
readme.txt
|
|
@ -1,21 +1,22 @@
|
||||||
Commands
|
Commands
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
/map_wait [wait] - set wait between tile renders (ms)
|
/map_wait [wait] - set wait between tile renders (ms)
|
||||||
/map_stat - query number of tiles in render queue
|
/map_stat - query number of tiles in render queue
|
||||||
/map_regen - regenerate entire map (currently buggy)
|
/map_regen - regenerate entire map (currently buggy)
|
||||||
/map_debug - send map debugging messages
|
/map_debug - send map debugging messages
|
||||||
/map_nodebug - disable map debugging messages
|
/map_nodebug - disable map debugging messages
|
||||||
/map_regenzoom - regenerates zoom-out tiles
|
/map_regenzoom - regenerates zoom-out tiles
|
||||||
|
|
||||||
/addsign [name] - adds a named sign to the map
|
/addsign [name] - adds a named sign to the map
|
||||||
/removesign [name] - removes a named sign to the map
|
/removesign [name] - removes a named sign to the map
|
||||||
/listsigns - list all named signs
|
/listsigns - list all named signs
|
||||||
/tpsign [name] - teleport to a named sign
|
/tpsign [name] - teleport to a named sign
|
||||||
|
|
||||||
server.properties
|
server.properties
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
map-colorsetpath - point to colors.txt
|
map-colorsetpath - point to colors.txt
|
||||||
map-tilepath - point to web/tiles folder
|
map-tilepath - point to web/tiles folder
|
||||||
map-signspath - point to signs.txt file (do not need to create the file, one will be created when you create a sign)
|
map-signspath - point to signs.txt file (do not need to create the file, one will be created when you create a sign)
|
||||||
map-serverport - the port the web server runs on (default is 8123)
|
map-serverport - the port the web server runs on (default is 8123)
|
||||||
map-showmarkers - a list of which markers to show on the map, comma separated if multiple (spawn, homes, warps, signs, players, all, none)
|
map-showmarkers - a list of which markers to show on the map, comma separated if multiple (spawn, homes, warps, signs, players, all, none)
|
||||||
|
map-generateportraits - whether player-portraits are generated by the server (0, 1, default: 0)
|
||||||
|
|
@ -113,7 +113,7 @@ public class MapManager extends Thread {
|
||||||
public Boolean showWarps = false;
|
public Boolean showWarps = false;
|
||||||
public Boolean showSigns = false;
|
public Boolean showSigns = false;
|
||||||
public Boolean showPlayers = false;
|
public Boolean showPlayers = false;
|
||||||
public Boolean enablePortraitGeneration = false;
|
public Boolean generatePortraits = false;
|
||||||
|
|
||||||
public void debug(String msg)
|
public void debug(String msg)
|
||||||
{
|
{
|
||||||
|
|
@ -137,7 +137,7 @@ public class MapManager extends Thread {
|
||||||
serverport = Integer.parseInt(properties.getString("map-serverport", "8123"));
|
serverport = Integer.parseInt(properties.getString("map-serverport", "8123"));
|
||||||
datasource = properties.getString("data-source", "flatfile");
|
datasource = properties.getString("data-source", "flatfile");
|
||||||
showmarkers = properties.getString("map-showmarkers", "all");
|
showmarkers = properties.getString("map-showmarkers", "all");
|
||||||
enablePortraitGeneration = !properties.getString("map-portraitgeneration", "0").equals("0");
|
generatePortraits = !properties.getString("map-generateportraits", "0").equals("0");
|
||||||
} catch(Exception ex) {
|
} catch(Exception ex) {
|
||||||
log.log(Level.SEVERE, "Exception while reading properties for dynamic map", ex);
|
log.log(Level.SEVERE, "Exception while reading properties for dynamic map", ex);
|
||||||
}
|
}
|
||||||
|
|
@ -902,7 +902,7 @@ public class MapManager extends Thread {
|
||||||
|
|
||||||
protected void getPlayerImage(Player player)
|
protected void getPlayerImage(Player player)
|
||||||
{
|
{
|
||||||
if (!enablePortraitGeneration) return;
|
if (!generatePortraits) return;
|
||||||
String urlString = "http://www.minecraft.net/skin/" + player.getName() + ".png";
|
String urlString = "http://www.minecraft.net/skin/" + player.getName() + ".png";
|
||||||
String filename = tilepath + player.getName() + ".png";
|
String filename = tilepath + player.getName() + ".png";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue