Add support for web server bindaddress to be set to match MC server-ip setting
This commit is contained in:
parent
fc2f817472
commit
d4de60d23a
2 changed files with 8 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ import java.util.concurrent.CancellationException;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.Future;
|
import java.util.concurrent.Future;
|
||||||
|
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.ChunkSnapshot;
|
import org.bukkit.ChunkSnapshot;
|
||||||
|
|
@ -551,6 +552,11 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||||
public double getServerTPS() {
|
public double getServerTPS() {
|
||||||
return tps;
|
return tps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getServerIP() {
|
||||||
|
return Bukkit.getServer().getIp();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Player access abstraction class
|
* Player access abstraction class
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,8 @@ tilespath: web/tiles
|
||||||
webpath: web
|
webpath: web
|
||||||
|
|
||||||
# The network-interface the webserver will bind to (0.0.0.0 for all interfaces, 127.0.0.1 for only local access).
|
# The network-interface the webserver will bind to (0.0.0.0 for all interfaces, 127.0.0.1 for only local access).
|
||||||
webserver-bindaddress: 0.0.0.0
|
# If not set, uses same setting as server in server.properties (or 0.0.0.0 if not specified)
|
||||||
|
#webserver-bindaddress: 0.0.0.0
|
||||||
|
|
||||||
# The TCP-port the webserver will listen on.
|
# The TCP-port the webserver will listen on.
|
||||||
webserver-port: 8123
|
webserver-port: 8123
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue