Minor changes
This commit is contained in:
parent
00f6f4ab05
commit
04074bc2b4
@ -121,6 +121,15 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
|
||||
|
||||
// FIELD: chatMode
|
||||
private ChatMode chatMode;
|
||||
public void setChatMode(ChatMode chatMode) { this.chatMode = chatMode; }
|
||||
public ChatMode getChatMode()
|
||||
{
|
||||
if(this.factionId.equals("0") || ! Conf.factionOnlyChat)
|
||||
{
|
||||
this.chatMode = ChatMode.PUBLIC;
|
||||
}
|
||||
return chatMode;
|
||||
}
|
||||
|
||||
// FIELD: account
|
||||
public MethodAccount getAccount()
|
||||
@ -189,22 +198,6 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public ChatMode getChatMode()
|
||||
{
|
||||
if(this.factionId.equals("0"))
|
||||
{
|
||||
return ChatMode.PUBLIC;
|
||||
}
|
||||
return chatMode;
|
||||
}
|
||||
|
||||
public void setChatMode(ChatMode chatMode)
|
||||
{
|
||||
this.chatMode = chatMode;
|
||||
}
|
||||
|
||||
public long getLastLoginTime()
|
||||
{
|
||||
return lastLoginTime;
|
||||
|
@ -30,7 +30,7 @@ public class CmdChat extends FCommand
|
||||
{
|
||||
if ( ! Conf.factionOnlyChat )
|
||||
{
|
||||
msg("<b>Faction-only chat is disabled on this server.");
|
||||
msg("<b>The built in chat chat channels are disabled on this server.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user