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