mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2025-06-26 19:44:27 +00:00
Minor update
This commit is contained in:
@ -1,30 +0,0 @@
|
||||
package me.totalfreedom.fossil.command;
|
||||
|
||||
import me.totalfreedom.command.CommandBase;
|
||||
import me.totalfreedom.command.annotation.Base;
|
||||
import me.totalfreedom.command.annotation.Info;
|
||||
import me.totalfreedom.command.annotation.Permissive;
|
||||
import me.totalfreedom.command.annotation.Subcommand;
|
||||
import me.totalfreedom.fossil.Fossil;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@Info(name = "kick", description = "Kick a player", usage = "/<command> <player>")
|
||||
@Permissive(perm = "fossil.kick")
|
||||
public class KickCommand extends CommandBase
|
||||
{
|
||||
public KickCommand(final Fossil plugin) {
|
||||
super(plugin);
|
||||
}
|
||||
|
||||
@Base
|
||||
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(final Player player, final String string) {
|
||||
player.kick(Component.text(string));
|
||||
}
|
||||
}
|
8
Fossil/src/main/resources/plugin.yml
Normal file
8
Fossil/src/main/resources/plugin.yml
Normal file
@ -0,0 +1,8 @@
|
||||
name: Fossil
|
||||
version: 1.0
|
||||
main: me.totalfreedom.fossil.Fossil
|
||||
author: TotalFreedom
|
||||
description: The Fun Module for the Freedom Network.
|
||||
depend:
|
||||
- Datura
|
||||
- Patchwork
|
Reference in New Issue
Block a user