2015-05-08 22:58:21 +02:00
|
|
|
package com.intellectualcrafters.plot.commands;
|
|
|
|
|
|
|
|
import com.intellectualcrafters.plot.object.PlotPlayer;
|
2015-07-27 19:50:04 +02:00
|
|
|
import com.plotsquared.general.commands.CommandDeclaration;
|
2015-05-08 22:58:21 +02:00
|
|
|
|
2015-07-26 21:33:54 +02:00
|
|
|
@CommandDeclaration(
|
2015-09-11 12:09:22 +02:00
|
|
|
command = "chat",
|
|
|
|
description = "Toggle plot chat on or off",
|
|
|
|
usage = "/plot chat [on|off]",
|
|
|
|
permission = "plots.chat",
|
|
|
|
category = CommandCategory.ACTIONS,
|
|
|
|
requiredType = RequiredType.NONE)
|
2015-09-13 06:04:31 +02:00
|
|
|
public class Chat extends SubCommand {
|
|
|
|
|
2015-05-08 22:58:21 +02:00
|
|
|
@Override
|
2015-09-13 06:04:31 +02:00
|
|
|
public boolean onCommand(final PlotPlayer player, final String... args) {
|
2015-09-11 12:09:22 +02:00
|
|
|
return MainCommand.onCommand(player, "plot", new String[] { "toggle", "chat" });
|
2015-05-08 22:58:21 +02:00
|
|
|
}
|
|
|
|
}
|