mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2024-05-20 11:31:23 +00:00
edb1f224ca
Due to the amount of breaking changes, I thought I would restart the numbering at 6.0
20 lines
718 B
Java
20 lines
718 B
Java
package me.totalfreedom.totalfreedommod.command;
|
|
|
|
import me.totalfreedom.totalfreedommod.rank.Rank;
|
|
import org.bukkit.command.Command;
|
|
import org.bukkit.command.CommandSender;
|
|
import org.bukkit.entity.Player;
|
|
|
|
@CommandPermissions(level = Rank.SENIOR_ADMIN, source = SourceType.ONLY_CONSOLE)
|
|
@CommandParameters(description = "Clear the discord message queue.", usage = "/<command>")
|
|
public class Command_cleardiscordqueue extends FreedomCommand
|
|
{
|
|
@Override
|
|
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
|
{
|
|
plugin.dc.clearQueue();
|
|
msg("Cleared the discord message queue.");
|
|
return true;
|
|
}
|
|
}
|