mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 11:15:21 +01:00
Add current/max player count on player list
This commit is contained in:
parent
b5700bd462
commit
2401eff676
@ -370,7 +370,14 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
|||||||
}
|
}
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public int getMaxPlayers() {
|
||||||
|
return getServer().getMaxPlayers();
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public int getCurrentPlayers() {
|
||||||
|
return getServer().getOnlinePlayers().length;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Player access abstraction class
|
* Player access abstraction class
|
||||||
|
Loading…
Reference in New Issue
Block a user