mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 06:36:44 +01:00
20 lines
610 B
Java
20 lines
610 B
Java
package com.intellectualcrafters.plot.commands;
|
|
|
|
import com.intellectualcrafters.plot.object.PlotPlayer;
|
|
import com.plotsquared.general.commands.CommandDeclaration;
|
|
|
|
@CommandDeclaration(
|
|
command = "chat",
|
|
description = "Toggle plot chat 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" });
|
|
}
|
|
}
|