Merge pull request #35 from dotblank/chat

Add an option to disable faction only chat
This commit is contained in:
Brett Flannigan 2011-09-12 20:33:47 -07:00
commit f40b241bc4
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;
}