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
-
@MrZylr
If you're using essentials just make the alias link to "/fly <player> off"
Is there a way to run if statements? For example if I were to setup a fly command could I set it up so that it does, if player has fly disable run the fly command.
@Ne0nx3r0
maybe, when the error happens on the /bareload it says my aliases file is empty.
@jakeschwartz
Most likely you have a typo in your aliases file. The error should tell you approximately where, or you could delete the aliases file and start over with a new one.
Hello so I downloaded BetterAlias and I have the commands all configured and stuff and I launch up my minecraft, I also have groupmanager with my rank as owner and the owner rank has the perm BetterAlias.* and nothing happens when I type one of my commands I made, none of the betteralias commands work either. Does this plugin rely on another plugin, does it conflict, whats happening? also when I type "/bareload" it only gives error.
example of my command:
nightvision:
permission: nightvision
0:
- console /effect @p 16 240
@CatzFuriousSpeed212
You could remove their permission to use the commands and then use the player_as_op prefix to execute the command as OP.
I suppose if /rpt supports a player parameter you could also use some other command that is run as the console to teleport the players to the wild warp location and then have the console rtp them. Then you could deny them permission to directly use /rtp and warp to that location. This way the only way to teleport there is by the custom /wild alias.
The problem with the way you're trying to do it is that BA will recursively route commands, meaning if you specify /wild to go to /warp wild and then null route /warp wild then you've effectively null routed /wild as well. This is done on purpose to allow more complex alias routes.
@Ne0nx3r0
I don't get what you don't understand but ill try to explain in more depth.
So the functions of the command "/rtp" is to teleport a player randomly in the world and the functions of "/warp wild" is to teleport to a player to a certain place where a warp has been set.
I want to to take both of the functions from those two commands and combined them both into one command which would be "/wild" but I would also like for "/rtp" and "/warp wild" to be un-usable by players but functions of the two commands that are now combined into "/wild" are only use-able when "/wild" is executed.
I hope this explanation helps.
@CatzFuriousSpeed212
I don't know what you mean.
@Ne0nx3r0
What im trying to do is make it so that /warp wild still has the functions of the commands "Rtp" and "warp wild" even though "Rtp" and "warp wild" are un-usable commands.
@CatzFuriousSpeed212
You've told the plugin to cancel "/wild" and route it to "/warp wild" but when the plugin does this you've then told it to cancel "/warp wild" and send your reply, then wait 120 and send /rtp which then also sends a reply.
I don't understand what you're trying to do but you only need what I posted to block "/warp wild". When you set up an alias, if there originally was a command it wont be sent.
I'm not sure how this might interact with command blocks, but you'll need to explain what it is you're trying to do before I could tell you whether it can be done with BA or not.
@Ne0nx3r0
wild: 0: - /warp wild - wait 120 /rtp
"warp wild": "*": reply This command does not exist.
"rtp": "*": reply "This command does not exist.
/wild does not work.
@CatzFuriousSpeed212
You'd want something like:
@Formula350
I'm not sure what you're trying to accomplish but your setup is telling the server to run /landtpset whenever someone types /landtpset.
@Formula350
I already tested out the OP theory. Its not that for sure. I think it may just be false claims that it does cancel out the original command.
I think the best way would be to look for another plugin currently.
@CatzFuriousSpeed212
Yea I had the same issue, but I admit I didn't test further to see if it was because I'm an Op. I set it to:
Saved the file, did /bareload and then console was floooooded with errors, the server paused for about 10seconds, and then the command was still passed through to the plugin in question.
I may come back to it in time, but i'm still working on trying to get Command Blocks to work with BetterAlias :\
Hey, is this listed on Spigot? Was having a nose to see if I could find it there but haven't discovered it.
@Ne0nx3r0
@Ne0nx3r0 I tried to cancel out the original command with this plugin.
Example: I wanted to remove being able to use /warp wild but still be able to use the actual features, im still able to use both commands.
Can you please help me out?
Is it possible to have this plugin made for a 1.7.10 server.
@CatzFuriousSpeed212
It does cancel the original command, this allows you to for example re-route a command to something else, or even disable specific commands when the permission nodes don't exist to do so.
@Ne0nx3r0 I was just wondering if the plugin disables the original command after your put a alias on it? if not could you add this?
I have this issue with argument numbers: I want to have an alias that can take variable amount of arguments, the 1st being a name, and reply the rest, so I do:
But that doesn't work at all. There's nothing in config telling me how I should use all the rest of arguments after the 1st one. I can just use !* for all of them...