mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-30 14:13:38 +01:00
Fix server name to use MOTD on 1.14.x
This commit is contained in:
parent
7f8dcf0eb3
commit
9746dc19f4
@ -250,13 +250,16 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||
else
|
||||
return null;
|
||||
}
|
||||
private boolean noservername = false;
|
||||
@Override
|
||||
public String getServerName() {
|
||||
try {
|
||||
if (!noservername)
|
||||
return getServer().getServerName();
|
||||
} catch (NoSuchMethodError x) { // Missing in 1.14 spigot - no idea why removed...
|
||||
return getServer().getName();
|
||||
noservername = true;
|
||||
}
|
||||
return getServer().getMotd();
|
||||
}
|
||||
@Override
|
||||
public boolean isPlayerBanned(String pid) {
|
||||
|
Loading…
Reference in New Issue
Block a user