BetterAlias
Tired of entering tedious and repetitive commands? Wish you could group commands into one short and easy to use command?
With BetterAlias you can specify any number of aliases for your commands!
Features
- Create aliases for long repetitive commands:
becomes/permissions player setgroup <playerName> VIP
/vip <playerName>
- Combine multiple commands into one simple command
- Compatible with your existing permissions/plugin commands!
- Supports partial player name lookups (ie "e0n" to find "Ne0nx3r0")
Installation
- Add BetterAlias.jar to your plugins directory
- Once loaded an aliases.yml file will be created
- Customize the file and use /bareload to enable the changes.
- Use the examples inside aliases.yml to setup aliases for everyone to use! (or add a custom permission node for the command)
Usage
See the examples page.
Multiple Commands
Separate multiple commands with dashes (-):
tpthenkick: 1: - /tp !1p !name - /kick !1p
The examples file that comes with the plugin includes examples of every type
-
@rockjolt375
I'll see what I can do.
@Ne0nx3r0
I really enjoy this plugin. Definitely saves a bunch of time. I do have 1 question however, a user a page back mentioned it and it has to do with prefixes.
At the moment it works flawlessly with
prefix: 1: pex user !name prefix !1
However, if a user wants to add spaces in his prefix it gives an unknown command. Is there a way to add space support for strings? say "this that and the other" gets stored in !1 because its in quotes?
@bartico6
You can use dashes (-) after the number to specify multiple commands, I believe the example file shows how to do this using /tpthenkick as an example command.
@bartico6
I don't think it is with this plugin but with CommandHelper it is
By the way... Any possibility of binding a few commands to one alias? For example bannish:
1: /pex user <nickname> group set banned
1: /mvtp <nickname> BannedIsland
1: /mute <nickname> ???
I want to make a bannishing command which will perform a total of THREE commands so, is this possible?
I think it IS possible but I cant figure it out :D
@Ne0nx3r0
Thanks for the response. Another question. Suppose you have a command and I do, that you actually want to repeat. I'll use mine as the example.
In a plugin I have if you are on a team your are also known to the plugin as being in the lobby. So if you want to leave the team and remain in the lobby you have would type:
/tt leave
At this point you are in the lobby of the game. However, a lot my players are complaining and I agree with them, that when they type /tt leave, they just want to leave. But instead in order to leave the plugin, you have to type /tt leave one more time, for a total of two times.
So I tried this:
Alias setting:
quit: 0: tt /leave 1: tt /leave
I also tried it in every other format. What happens is that the first /tt leave is executed no problem, but the 2nd one returns with an invalid command. If the player is one in level one of the game (lobby) and the "quit" command is execute everything works fine (weird). Seems like there is almost a pause needed before the command executions?
@zrocweb
The numbers specify how many parameters there are for that command, for example:
If the user types /gmon, it would run:
/gamemode <theirUsername> 1
if they typed /gmon fish, it would run:
/gamemode fish 1
If you just want all parameters passed to it, you could use an asterisk (*), but this allows commands that are strict to be formatted correctly.
Notably the dashes are for multiple commands.
Hey. Nice job on the plugin. Really. Extremely useful for life.
One thing though. Can you please explain your config with a little clarity. I know it's pretty self explanatory, however, in your config with the examples you have in there there are different spacings, different "0" verses "1" and "1" - > "2", etc...
What are the differences in using 0 over 1 and 1 and 2 or just 1 with - cmd [cr] - cmd, etc...
Does the spacing matter in an way, shape or form? If you have a single command you want to alias should the alias param. start with "0" or "1"?
Thanks
@404exe
Thanks, I appreciate it!
just wanted to say:
I love your plugin! :-)
@notif
That's not enough information to troubleshoot, sorry.
For some reason this is not working for us with Essentials' Warps.
-edit-
Submitted a ticket
@deleted_8435363
Would that also work with prefixes and colored prefixes?
@Tritek
I am having the EXACT same problem :(
The config is EXTREMELY confusing
How would I change this: /pex user <player> prefix [newprefix] into this: /prefix <player> [newprefix]
@Thaddeus93
You probably want:
protection:
0: /help protection
1: /help protection !1
Brief question, within the config.yml file I have the following;
protection:
0: /help protection
1: /help protection 2
2: /help protection 3
The issue surrounding this is, is that it seems when I attempt /protection 3 in game it performs the ' 1: /help protection 2' line. Have I done something wrong or?
Thanks.
breload yay! thanks :)
@Ne0nx3r0
Thank you! :D