mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2025-06-26 19:44:27 +00:00
Adjust to better align with code specs
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
package me.totalfreedom.fossil.command;
|
||||
|
||||
import me.totalfreedom.command.*;
|
||||
import me.totalfreedom.command.CommandBase;
|
||||
import me.totalfreedom.command.annotation.Base;
|
||||
import me.totalfreedom.command.annotation.Info;
|
||||
import me.totalfreedom.command.annotation.Permissive;
|
||||
@ -14,23 +14,17 @@ import org.bukkit.entity.Player;
|
||||
@Permissive(perm = "fossil.kick")
|
||||
public class KickCommand extends CommandBase
|
||||
{
|
||||
public KickCommand(Fossil plugin) {
|
||||
public KickCommand(final Fossil plugin) {
|
||||
super(plugin);
|
||||
}
|
||||
|
||||
@Base
|
||||
public void run(CommandSender sender) {
|
||||
public void run(final CommandSender sender) {
|
||||
sender.sendMessage(Component.text("You must specify a player to kick."));
|
||||
}
|
||||
|
||||
@Subcommand(permission = "fossil.kick", args = {Player.class, String.class})
|
||||
public void kickPlayer(Player player, String string) {
|
||||
public void kickPlayer(final Player player, final String string) {
|
||||
player.kick(Component.text(string));
|
||||
}
|
||||
|
||||
// TODO: Write the code to make this work properly.
|
||||
@Subcommand(name = "info", permission = "fossil.kick.info", args = {Player.class})
|
||||
public void playerinfo(Player player) {
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user