Add current/max player count on player list
This commit is contained in:
parent
86167788fa
commit
560424886b
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue