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
-
Can you update for 1.6.1 please? Thanks
Does anyone else have the problem when making an alias for /h to be /home !1. I've even tried /h to be "/ehome !name:!1". It seems that nothing happens. If I just do /h it brings up a list of my homes but and argument after it results in nothing and nothing in the console.
@1337ingDisorder
You can implement cooldowns in a roundabout way by temporarily revoking permissions for a command and then re-granting them. I do it on my server to prevent spamming the time from day to night.
Example config:
day:
perimission: time
0:
- console /time set 0
- console /permissions player setperm !name betteralias.time false
- reply Time set successfully. You may use time commands in 5 minutes.
- console /say !name has set the time to sunrise.
- wait 6000 console /permissions player setperm !name betteralias.time true
- wait 6000 reply You may now use time commands again.
If I wanted to do a command that would make an announcement to the server and say the players name, how would I denote the players name in the code?
Excellent plugin! Would it be possible to add command cooldowns to the next version release?
Example config:
myCommand:
cooldown: 300
0: /broadcast BetterAlias is awesome!
...that config would make it so players would have to wait 5 minutes between uses of /myCommand
@Ne0nx3r0
Thanks a lot ! It works :D
@MineLab
I think you mean to run the command as the console, but you are making the player run it: http://dev.bukkit.org/bukkit-mods/betteralias/pages/examples/#w-run-as-console
@Ne0nx3r0
Check my reply, i've updated it !
@Tritek
If you want to submit a ticket with the steps to duplicate the problem and plugins that are required I'll see what I can do; I'm not familiar with that plugin though.
Websend can't run commands on console. Please fix that.
Maybe add a toggle in the config?
@Sayonatchi
Ironically it was made this way because someone had the opposite problem.
I'll see what I can do.
Can you not make the initial alias require the right Capital letters, i am having to copy each alias a lot.
Example Alias: at the moment I would have to setup all these: RemoveRank: removerank: Removerank:
all for the same thing. At least a setting for it.
@Ne0nx3r0
Thanks for reply, but it doesn't work...
Here is what I did:
1. aliases.yml:
2. group.yml (from Groupmanager plugin)
3. Reload
/manload, /reload, and leave and join the server
4. In game
When VIP type: /autovip it says "I'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error." /other.alias it says "You do not have permission to use this alias."
What's the problem ?
@MineLab
That's different than what you said before :P.
This might have to do with how * permissions are handled; they no longer mean "anything" as they did in the past, they mean whatever the plugin specifies in the plugin's plugin.yml (you list each permission). Because this plugin is dynamic, if you want * to work you would need to modify plugin.yml yourself.
The short answer is the solution would be to explicitly give them betteralias.your.node, and not use *.
@Ne0nx3r0
An admin on my server have the following permissions: - '*' - betteralias.* - betteralias.vip He can use /vip only if he is OP... :/
@MineLab
This might help you.
I have the same problem as nicknds:
I have some problems with the 'permission:' line, unless a person is OP, they don't have permission to use the alias. For example, my mod with the permissions 'make.mod' does not have permission to use the alias. An opped player without 'make.mod' has permission. I use GroupManager. And mod have the permission "betteralias.make.mod"..
@NeOnx3Ro I currently use your QC plugin and I love it.. thanks for that. :)
Am trying to use BA v1.2 but am having no success at all. No alias I input works.. indeed even the aliases included in alias.yml suffer the same fate when I try to use them .. "unknown command...blah blah". Even from the console.. it's the same thing. My server uses Spigot build #866..most current at this time, and I have encountered no problems with any other plugin that works with CB. Is there some incompatability with BA and Spigot? Or perhaps something I need to do other than simply placing the BA jar in my plugins folder and restarting the server? BTW, there are zero indications in the console that BA has any problem starting/running. Everything looks fine but every alias listed in alias.yml returns an unknown command error.
Any ideas?
Thanks :)
EDIT: Well.. it fixed itself. Dunno how or why.. but after several server reboots, while reconfiguring perms for a few other plugins (totally unrelated to BA), it started working.
Go figure.
... and thanks again for your marvelous work.
Slo
@1337ingDisorder -
Your color syntax seems to be off, take a look at the examples page for a list of colors you can use.