changed namespace to com.massivecraft

This commit is contained in:
Olof Larsson
2011-07-18 22:06:02 +02:00
parent 60603892c6
commit 8aefae5679
151 changed files with 988 additions and 949 deletions

View File

@@ -0,0 +1,29 @@
package com.massivecraft.factions.commands;
public class FCommandChat extends FBaseCommand {
public FCommandChat() {
aliases.add("chat");
aliases.add("c");
helpDescription = "Switch faction only chat on and off";
}
@Override
public void perform() {
if ( ! assertHasFaction()) {
return;
}
if ( ! me.isFactionChatting()) {
// Turn on
me.setFactionChatting(true);
sendMessage("Faction-only chat ENABLED.");
} else {
// Turn off
me.setFactionChatting(false);
sendMessage("Faction-only chat DISABLED.");
}
}
}