Expose min- and max-player methods on Arena.

This commit is contained in:
garbagemule 2013-08-19 02:22:44 +02:00
parent 3b47ca407e
commit 809ee2facb
3 changed files with 11 additions and 5 deletions

View File

@ -1,7 +1,7 @@
name: MobArena
author: garbagemule
main: com.garbagemule.MobArena.MobArena
version: 0.95.5.24
version: 0.95.5.25
softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault]
commands:
ma:

View File

@ -236,11 +236,13 @@ public class ArenaImpl implements Arena
edit = value;
}
private int getMinPlayers() {
@Override
public int getMinPlayers() {
return settings.getInt("min-players");
}
private int getMaxPlayers() {
@Override
public int getMaxPlayers() {
return settings.getInt("max-players");
}

View File

@ -54,6 +54,10 @@ public interface Arena
public void setEditMode(boolean value);
public int getMinPlayers();
public int getMaxPlayers();
public List<ItemStack> getEntryFee();
public Set<Map.Entry<Integer,List<ItemStack>>> getEveryWaveEntrySet();