TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/command/Command_reactionbar.java

26 lines
837 B
Java
Raw Normal View History

2020-04-14 06:40:22 +00:00
package me.totalfreedom.totalfreedommod.command;
import me.totalfreedom.totalfreedommod.rank.Rank;
2020-07-02 08:42:27 +00:00
import me.totalfreedom.totalfreedommod.util.FUtil;
2020-04-14 06:40:22 +00:00
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@CommandPermissions(level = Rank.ADMIN, source = SourceType.BOTH)
2020-07-02 08:42:27 +00:00
@CommandParameters(description = "Forcefully start a reaction", usage = "/<command>")
2020-04-14 06:40:22 +00:00
public class Command_reactionbar extends FreedomCommand
{
@Override
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
2020-07-02 08:42:27 +00:00
if (!FUtil.isDeveloper(sender.getName()))
2020-04-14 06:40:22 +00:00
{
2020-07-02 08:42:27 +00:00
return noPerms();
2020-04-14 06:40:22 +00:00
}
2020-07-02 08:42:27 +00:00
plugin.sh.forceStartReaction();
msg("Started a reaction.");
2020-04-14 06:40:22 +00:00
return true;
}
}