Add an option to disable faction only chat

This commit is contained in:
Elias Woods 2011-09-10 00:26:15 -04:00
parent 120039b07f
commit a5a0125195
2 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,8 @@ public class Conf {
// Disallow joining/leaving/kicking while power is negative
public static boolean CanLeaveWithNegativePower = true;
// Configuration for faction-only chat
public static boolean factionOnlyChat = true;
// Configuration on the Faction tag in chat messages.
public static boolean chatTagEnabled = true;
public static transient boolean chatTagHandledByAnotherPlugin = false;

View File

@ -1,5 +1,7 @@
package com.massivecraft.factions.commands;
import com.massivecraft.factions.Conf;
public class FCommandChat extends FBaseCommand {
public FCommandChat() {
@ -11,6 +13,10 @@ public class FCommandChat extends FBaseCommand {
@Override
public void perform() {
if ( ! Conf.factionOnlyChat )
{
return;
}
if ( ! assertHasFaction()) {
return;
}