Add Pager Item Index
This commit is contained in:
parent
da5e1de456
commit
48a8e81113
@ -58,7 +58,7 @@ public class CmdFactionsInviteList extends FactionsCommand
|
||||
// Use Pager
|
||||
List<String> messages = pager.getPageTxt(pageHumanBased, "Invited Players List", new Stringifier<MPlayer>(){
|
||||
|
||||
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);
|
||||
|
@ -61,7 +61,7 @@ public class CmdFactionsList extends FactionsCommand
|
||||
// Use Pager
|
||||
List<String> messages = pager.getPageTxt(pageHumanBased, "Faction List", new Stringifier<Faction>() {
|
||||
@Override
|
||||
public String toString(Faction faction)
|
||||
public String toString(Faction faction, int index)
|
||||
{
|
||||
if (faction.isNone())
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ public class CmdFactionsStatus extends FactionsCommand
|
||||
List<String> messages = pager.getPageTxt(pageHumanBased, pagerTitle, new Stringifier<MPlayer>(){
|
||||
|
||||
@Override
|
||||
public String toString(MPlayer mplayer)
|
||||
public String toString(MPlayer mplayer, int index)
|
||||
{
|
||||
// Name
|
||||
String displayName = mplayer.getNameAndSomething(msender.getColorTo(mplayer).toString(), "");
|
||||
|
Loading…
Reference in New Issue
Block a user