Changed variable names to reflect others.

Updated readme to reflect changes
This commit is contained in:
FrozenCow 2010-12-29 03:22:14 +01:00
parent f84b9d4bde
commit 5780bc89f0
2 changed files with 25 additions and 24 deletions

View File

@ -1,21 +1,22 @@
Commands
--------------------------------------------------
/map_wait [wait] - set wait between tile renders (ms)
/map_stat - query number of tiles in render queue
/map_regen - regenerate entire map (currently buggy)
/map_debug - send map debugging messages
/map_nodebug - disable map debugging messages
/map_regenzoom - regenerates zoom-out tiles
/addsign [name] - adds a named sign to the map
/removesign [name] - removes a named sign to the map
/listsigns - list all named signs
/tpsign [name] - teleport to a named sign
server.properties
--------------------------------------------------
map-colorsetpath - point to colors.txt
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-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)
Commands
--------------------------------------------------
/map_wait [wait] - set wait between tile renders (ms)
/map_stat - query number of tiles in render queue
/map_regen - regenerate entire map (currently buggy)
/map_debug - send map debugging messages
/map_nodebug - disable map debugging messages
/map_regenzoom - regenerates zoom-out tiles
/addsign [name] - adds a named sign to the map
/removesign [name] - removes a named sign to the map
/listsigns - list all named signs
/tpsign [name] - teleport to a named sign
server.properties
--------------------------------------------------
map-colorsetpath - point to colors.txt
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-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-generateportraits - whether player-portraits are generated by the server (0, 1, default: 0)

View File

@ -113,7 +113,7 @@ public class MapManager extends Thread {
public Boolean showWarps = false;
public Boolean showSigns = false;
public Boolean showPlayers = false;
public Boolean enablePortraitGeneration = false;
public Boolean generatePortraits = false;
public void debug(String msg)
{
@ -137,7 +137,7 @@ public class MapManager extends Thread {
serverport = Integer.parseInt(properties.getString("map-serverport", "8123"));
datasource = properties.getString("data-source", "flatfile");
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) {
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)
{
if (!enablePortraitGeneration) return;
if (!generatePortraits) return;
String urlString = "http://www.minecraft.net/skin/" + player.getName() + ".png";
String filename = tilepath + player.getName() + ".png";