-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
1 changed file
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
# Alias Show Text | ||
|
||
todo | ||
A Spigot plugin to allow commands.yml aliases to show text to the user. | ||
This can be used to make basic custom commands! | ||
|
||
## Installation | ||
|
||
Grab the latest jar file from the releases section and place it in your plugins folder! | ||
|
||
While this plugin has only been tested on 1.18, it should work on most earlier versions as well as future. | ||
|
||
## Usage | ||
|
||
AliasShowText is used entirely in the `commands.yml` file. | ||
Simply use the `_showtext` command under an alias, and all text after will be displayed to the user. | ||
For example, the following creates a command `/discord` that gives the user the URL of the Discord server: | ||
|
||
```yaml | ||
aliases: | ||
discord: | ||
- '_showtext Discord server: https://discord.gg/minecraft' | ||
``` | ||
Of course, `_showtext` supports [standard Minecraft formatting codes](https://minecraft.fandom.com/wiki/Formatting_codes). | ||
|
||
## To-Do | ||
|
||
* Support for storing text strings in a seperate file | ||
* Allow server operator to reload strings at runtime | ||
* Allow text strings to support arguments | ||
* Support for special text functions | ||
* Support for special cases (ex: joining the server) |