2015-05-08 22:58:21 +02:00
|
|
|
package com.intellectualcrafters.plot.commands;
|
|
|
|
|
2015-07-03 14:15:20 +02:00
|
|
|
import com.intellectualcrafters.plot.PS;
|
2015-05-08 22:58:21 +02:00
|
|
|
import com.intellectualcrafters.plot.config.C;
|
|
|
|
import com.intellectualcrafters.plot.object.PlotPlayer;
|
|
|
|
import com.intellectualcrafters.plot.object.PlotWorld;
|
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(
|
|
|
|
command = "chat",
|
2015-08-22 06:12:16 +02:00
|
|
|
description = "Toggle plot chat on or off",
|
2015-07-26 21:33:54 +02:00
|
|
|
usage = "/plot chat [on|off]",
|
|
|
|
permission = "plots.chat",
|
|
|
|
category = CommandCategory.ACTIONS,
|
2015-07-27 19:50:32 +02:00
|
|
|
requiredType = RequiredType.NONE
|
2015-07-26 21:33:54 +02:00
|
|
|
)
|
2015-05-08 22:58:21 +02:00
|
|
|
public class Chat extends SubCommand {
|
|
|
|
|
|
|
|
@Override
|
2015-08-18 15:20:11 +02:00
|
|
|
public boolean onCommand(final PlotPlayer player, final String ... args) {
|
|
|
|
return MainCommand.onCommand(player, "plot", new String[] {"toggle", "chat"});
|
2015-05-08 22:58:21 +02:00
|
|
|
}
|
|
|
|
}
|