A chat/command wRapper
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jolheiser 297fd193f1 Convert to gradle, change connection, and add woodpecker (#1) 3 months ago
gradle/wrapper Convert to gradle, change connection, and add woodpecker (#1) 3 months ago
src/main Convert to gradle, change connection, and add woodpecker (#1) 3 months ago
.gitignore Convert to gradle, change connection, and add woodpecker (#1) 3 months ago
.woodpecker.yml Convert to gradle, change connection, and add woodpecker (#1) 3 months ago
LICENSE Add 'LICENSE' (#11) 2 years ago
README.md Move docs to README 10 months ago
build.gradle Convert to gradle, change connection, and add woodpecker (#1) 3 months ago
gradlew Convert to gradle, change connection, and add woodpecker (#1) 3 months ago
gradlew.bat Convert to gradle, change connection, and add woodpecker (#1) 3 months ago
settings.gradle Convert to gradle, change connection, and add woodpecker (#1) 3 months ago

README.md

Mixtape

A chat/command wRapper get it?

An example of this might be setting up an alias for /wb that simply makes the player say Welcome back!

See examples for more.

All aliases are processed before registered commands.
This means if you make an alias for an existing command, that command will no longer work directly.
To get around that, you can still use the registered command via its namespace.
e.g. /essentials:ban

Example config

Commands

Command Description
/alias <alias> <message> Create a chat alias.
//alias <alias> <command> Create a command alias.
/mixtape list [<player>] List aliases. If a player has the mixtape.list.other permission, they can view other player's aliases as well.
/mixtape delete <alias> Delete an alias.
/mixtape reload Reload Mixtape.

Permissions

Permission Description
mixtape.admin Allows use of Mixtape admin commands, namely /mixtape reload.
mixtape.list Allows a player to list their aliases.
mixtape.list.other Allows a player to list other player's aliases.
mixtape.list.* Wildcard permission for the two above nodes.
mixtape.limit.x Give a player a specific limit (x) for creating aliases. Overrides the global limit.
mixtape.alias.chat Allows players to create chat aliases.
mixtape.alias.command Allows players to create command aliases.
mixtape.alias.* Wildcard permission for the two above nodes.
mixtape.* Wildcard permission for all nodes.

Examples

Commands

//alias wife msg MrsEtzelia
/wife Hey! -> /msg MrsEtzelia Hey!

//alias xray co rb r:<radius> b:diamond_ore,stone #preview
/xray 50 -> /co rb r:50 b:diamond_ore,stone #preview

Chat

/alias wb Welcome back!
/wb -> Welcome back!

/alias wb Welcome back, <player>!
/wb Etzelia -> Welcome back, Etzelia!

/alias lookup /co l r:<radius> a:container
Player asks "How do I check for theft?"
/lookup 10 -> ./co l r:10 a:container

License

MIT