From 48a8e81113f2c02f88bfd24c45e3e28314518bd1 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 17 Feb 2015 10:40:15 +0100 Subject: [PATCH] Add Pager Item Index --- src/com/massivecraft/factions/cmd/CmdFactionsInviteList.java | 2 +- src/com/massivecraft/factions/cmd/CmdFactionsList.java | 2 +- src/com/massivecraft/factions/cmd/CmdFactionsStatus.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsInviteList.java b/src/com/massivecraft/factions/cmd/CmdFactionsInviteList.java index a75d6e66..8544045c 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsInviteList.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsInviteList.java @@ -58,7 +58,7 @@ public class CmdFactionsInviteList extends FactionsCommand // Use Pager List messages = pager.getPageTxt(pageHumanBased, "Invited Players List", new Stringifier(){ - public String toString(MPlayer target) + public String toString(MPlayer target, int index) { // TODO: Madus would like to implement this in MPlayer String targetName = target.getDisplayName(msender); diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsList.java b/src/com/massivecraft/factions/cmd/CmdFactionsList.java index 66e7c66a..17d50ea9 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsList.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsList.java @@ -61,7 +61,7 @@ public class CmdFactionsList extends FactionsCommand // Use Pager List messages = pager.getPageTxt(pageHumanBased, "Faction List", new Stringifier() { @Override - public String toString(Faction faction) + public String toString(Faction faction, int index) { if (faction.isNone()) { diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsStatus.java b/src/com/massivecraft/factions/cmd/CmdFactionsStatus.java index 83f37d34..035b52c2 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsStatus.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsStatus.java @@ -69,7 +69,7 @@ public class CmdFactionsStatus extends FactionsCommand List messages = pager.getPageTxt(pageHumanBased, pagerTitle, new Stringifier(){ @Override - public String toString(MPlayer mplayer) + public String toString(MPlayer mplayer, int index) { // Name String displayName = mplayer.getNameAndSomething(msender.getColorTo(mplayer).toString(), "");