Skip to content

Hey there! If you like my work, you can support me by sponsoring me on GitHub. Thanks! ❤

Sponsor me
on GitHub

Bukkit Types

@Arg - Use Basic Types to easily validate, parse, and get arguments!

Supported Types Bukkit

Argument TypeValuesExample
PlayerOnline playerRollczi
OfflinePLayerOffline/Online playerRollczi, Mike, Lucky
WorldWorldworld, world_nether, world_the_end
LocationLocation (also current ~)10 100 20, ~ ~ ~, ~ 100 ~

Example:

java
@Execute(route = "player-arg")
public void executePlayer(@Context SENDER sender, @Arg Player player) {
    System.out.println(player);
}
java
@Execute(route = "player-arg")
public void executePlayer(@Context SENDER sender, @Async @Arg OfflinePlayer player) {
    System.out.println(player);
}
java
@Execute(route = "world-arg")
public void executeWorld(@Context SENDER sender, @Arg World world) {
    System.out.println(world);
}
java
@Execute(route = "location-arg")
public void executeLocation(@Context SENDER sender, @Arg Location location) {
    System.out.println(location);
}

Made by LiteDevelopers and Contributors with ❤️