Merge pull request #35 from dotblank/chat
Add an option to disable faction only chat
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user