Skip to content

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

Sponsor me
on GitHub

Platform Types

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

There you can find the list of available types for each platform. (List can be outdated)

PlatformTypesValuesExample
Bukkit
PlayerOnline playerRollczi
OfflinePLayerOffline/Online playerRollczi, Mike, Lucky
WorldWorldworld, world_nether, world_the_end
LocationLocation10 100 20, ~ ~ ~, ~ 100 ~
Minestom
PlayerOnline playerRollczi
Adventure
ComponentTexttext, <red>text, &c&lRed Text, <gradient:#aa33aa:#4455aa>Gradient!
JDA
UserUser@Rollczi
AttachmentAttachmentDrop and drag or click to upload file
RoleRole@Role
IMentionableMentionable@Role, @Rollczi
ChannelChannel#channel
GuildChannelGuild channel#channel
GuildChannelUnionGuild channel#channel
MemberMember@Rollczi

Bukkit Examples

java
@Execute
void execute(@Arg Player player) {
    // ...
}
java
@Execute
void execute(@Arg OfflinePlayer player) {
    // ...
}
java
@Execute
void execute(@Arg World world) {
    // ...
}
java
@Execute
void execute(@Arg Location location) {
    // ...
}

Minestom Examples

java
@Execute(name = "teleport")
void teleport(@Arg Player player, @Arg Player target) {
    // ...
}

Adventure Examples

java
@Execute
void execute(@Arg Component nocolored) {
    // ...
}
java
@Execute
void execute(@Arg @Key("color") Component colored) {
    // ...
}

JDA Examples

java
@Execute(name = "set")
void setRole(@Arg Member member, @Arg Role role) {
    // ...
}

Made by LiteDevelopers and Contributors with ❤️