package com.intellectualcrafters.plot.commands; import com.intellectualcrafters.plot.PS; import com.intellectualcrafters.plot.config.C; import com.intellectualcrafters.plot.object.PlotPlayer; import com.intellectualcrafters.plot.object.PlotWorld; import com.plotsquared.general.commands.CommandDeclaration; @CommandDeclaration( command = "chat", description = "Toggle plto chant on or off", usage = "/plot chat [on|off]", permission = "plots.chat", category = CommandCategory.ACTIONS, requiredType = RequiredType.NONE ) public class Chat extends SubCommand { @Override public boolean onCommand(final PlotPlayer player, final String ... args) { return MainCommand.onCommand(player, "plot", new String[] {"toggle", "chat"}); } }