Fixed shop lineup

This commit is contained in:
Brianna O'Keefe 2018-05-18 19:26:52 -04:00
parent 49e8a70e6d
commit 7b29db820b
2 changed files with 2 additions and 11 deletions

View File

@ -45,15 +45,6 @@ public class SpawnerDropEvent extends SpawnerEvent implements Cancellable {
return location;
}
/**
* Get the player involved in this event
*
* @return the involved player
*/
public Player getPlayer() {
return player;
}
/**
* Get the stack size of the broken spawner
*

View File

@ -40,13 +40,13 @@ public class Shop {
List<SpawnerData> entities = new ArrayList<>();
int num = 0, show = 0;
int start = (page - 1) * 32;
int start = (page - 1) * 33;
for (SpawnerData spawnerData : instance.getSpawnerManager().getAllSpawnerData()) {
if (!spawnerData.getIdentifyingName().toLowerCase().equals("omni")
&& spawnerData.isInShop() && spawnerData.isActive()
&& p.hasPermission("epicspawners.shop." + Methods.getTypeFromString(spawnerData.getIdentifyingName()).replaceAll(" ", "_"))) {
if (num >= start && show <= 32) {
if (num >= start && show <= 33) {
entities.add(spawnerData);
show++;
}