This plugin provides a very easy way to create commands that execute a command from another plugin.
Commands can be
created from files. Manage their permissions, their behaviour and more.
1. Install the plugin on your server
2. Start your server once
3. Stop it again
4. Open the folder located at: plugins/SimpleAliases/commands
5. In there you can see a example command.
6. Create a new command, create a file with any name, ending at .yml.
Paste the example layout into it and start modifing it.
Code (YAML):
label: "dirt"# The command will look like this: /dirt description: "Receive 64 dirt"# The description you can see when using help usage: "/dirt"# The usage that is getting displayed to the user aliases: # The aliases the command is known as -
"mud" -
"filth" permission: "aliases.example.dirt"# The permission a player requires to use the command no-permission-message: "You can't use this command, due to lack of permission"# The message that's getting displayed when the player doesn't have the permission error-message: "Something went wrong while executing your command" # -------( Actions )------- # [actionbar] <message> - Send an actionbar to the player # [broadcast] <message> - Send a message to all players # [console] <command> - Execute a command in console # [player] <command> - Execute a command as player # [message] <message> - Send a message to a player # [sound] <sound> <volume> <pitch> - Play a sound. Sounds can be found. List of sounds: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html # [title] <title> [subtitle] [fade in] [stay] [fade out] Send a title to a player. Underscores will be replaced with spaces. # [delay] <amount> - Makes a pause for x amount seconds # # -------( Placeholders )------- # {player} - the player execution the command execution: -
"[player] give {player} minecraft:dirt 32" -
"[delay] 10" -
"[message] I got sent 10 seconds after you recieved your dirt" -
"[title] Dirt"