Added option to enable server-side portrait generation (default is off).
This commit is contained in:
parent
e761cff2b8
commit
b5bd4bd965
1 changed files with 3 additions and 0 deletions
|
|
@ -113,6 +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 void debug(String msg)
|
public void debug(String msg)
|
||||||
{
|
{
|
||||||
|
|
@ -136,6 +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");
|
||||||
} 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);
|
||||||
}
|
}
|
||||||
|
|
@ -900,6 +902,7 @@ public class MapManager extends Thread {
|
||||||
|
|
||||||
protected void getPlayerImage(Player player)
|
protected void getPlayerImage(Player player)
|
||||||
{
|
{
|
||||||
|
if (!enablePortraitGeneration) 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