Implement Mson UsageTemplate.
This commit is contained in:

committed by
Olof Larsson

parent
fe68d57b23
commit
13b7bd5581
@ -1207,17 +1207,17 @@ public class Faction extends Entity<Faction> implements EconomyParticipator
|
||||
|
||||
// CONVENIENCE SEND MESSAGE
|
||||
|
||||
public boolean sendMessage(String message)
|
||||
public boolean sendMessage(Object message)
|
||||
{
|
||||
return Mixin.messagePredictate(new FactionEqualsPredictate(this), message);
|
||||
}
|
||||
|
||||
public boolean sendMessage(String... messages)
|
||||
public boolean sendMessage(Object... messages)
|
||||
{
|
||||
return Mixin.messagePredictate(new FactionEqualsPredictate(this), messages);
|
||||
}
|
||||
|
||||
public boolean sendMessage(Collection<String> messages)
|
||||
public boolean sendMessage(Collection<Object> messages)
|
||||
{
|
||||
return Mixin.messagePredictate(new FactionEqualsPredictate(this), messages);
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ public class MPerm extends Entity<MPerm> implements Prioritized, Registerable
|
||||
Player player = mplayer.getPlayer();
|
||||
if (player != null && Perm.ADMIN.has(player))
|
||||
{
|
||||
ret += Txt.parse("\n<i>You can bypass by using " + Factions.get().getOuterCmdFactions().cmdFactionsAdmin.getUseageTemplate(false));
|
||||
ret += Txt.parse("\n<i>You can bypass by using " + Factions.get().getOuterCmdFactions().cmdFactionsAdmin.getUseageTemplate(false).toPlain(true));
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user