mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-24 17:47:40 +01:00
Added option to enable server-side portrait generation (default is off).
This commit is contained in:
parent
e761cff2b8
commit
b5bd4bd965
@ -113,6 +113,7 @@ public class MapManager extends Thread {
|
||||
public Boolean showWarps = false;
|
||||
public Boolean showSigns = false;
|
||||
public Boolean showPlayers = false;
|
||||
public Boolean enablePortraitGeneration = false;
|
||||
|
||||
public void debug(String msg)
|
||||
{
|
||||
@ -136,6 +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");
|
||||
} catch(Exception 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)
|
||||
{
|
||||
if (!enablePortraitGeneration) return;
|
||||
String urlString = "http://www.minecraft.net/skin/" + player.getName() + ".png";
|
||||
String filename = tilepath + player.getName() + ".png";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user