PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Chat.java

24 lines
798 B
Java
Raw Normal View History

2015-05-08 22:58:21 +02:00
package com.intellectualcrafters.plot.commands;
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",
description = "Toggle plto chant on or off",
usage = "/plot chat [on|off]",
permission = "plots.chat",
category = CommandCategory.ACTIONS,
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
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
}
}