mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
target > elementtype
This commit is contained in:
parent
b0677bb66d
commit
0befa2eb39
@ -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,
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user