target > elementtype

This commit is contained in:
CocoTheOwner 2021-08-13 11:06:44 +02:00
parent b0677bb66d
commit 0befa2eb39
2 changed files with 5 additions and 3 deletions

View File

@ -22,9 +22,8 @@ import com.volmit.iris.util.decree.annotations.Decree;
import com.volmit.iris.util.decree.annotations.Param;
import org.bukkit.entity.Player;
public class EXAMPLE extends DecreeCommand
{
@Decree()
public class EXAMPLE extends DecreeCommand {
@Decree
public void kick(
@Param(name = "player", description = "The Player to kick from the server", aliases = "p")
Player player,

View File

@ -20,10 +20,13 @@ package com.volmit.iris.util.decree.annotations;
import com.volmit.iris.util.decree.DecreeOrigin;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
public @interface Decree {
String METHOD_NAME = "Default Method Name";