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
-

-
View User Profile
-
Send Message
Posted Aug 17, 2013Can You make an API?
-
View User Profile
-
Send Message
Posted Aug 13, 2013Hello. I need to put 1 parameter inside a command, not after it. Like:
Can't actually realise if I can do it with your plugin. Help. Thank you.
UPD: It would be awesome if you could add !world and !coords parameters for executor's world and coordinates respectively.
UPD2: Alias commands cannot be blocked by WG blocked-cmds flag.
-
View User Profile
-
Send Message
Posted Aug 12, 2013Hi with version 1.4 I have this as one of my aliases:
f: 0: reply &DARK_REDWE WILL NEVER HAVE FACTIONS ON THIS SERVER 1: reply &DARK_REDYOU CANT DO /f !1 AS WE WILL NEVER HAVE FACTIONS 2: reply &DARK_REDYOU CANT DO /f !1 !2 AS WE WILL NEVER HAVE FACTIONS 3: reply &DARK_REDYOU CANT DO /f !1 !2 !3 AS WE WILL NEVER HAVE FACTIONS
Now when someone does /fly they get the dark red message "YOU CANT DO /f ly AS WE WILL NEVER HAVE FACTIONS" even though there is no space. It still works in 1.2 but stopped working in 1.4 (I haven't tried 1.3). I've probably missed something glaringly obvious but any help would be appreciated.
Thanks :)
-
View User Profile
-
Send Message
Posted Aug 11, 2013@Ne0nx3r0
Thanks alot, its finally working now, but there is one problem, if i make a alias thats for example /i i cant type a command for example /ip, is that a bug or no?
-
View User Profile
-
Send Message
Posted Aug 11, 2013I love that plugin.
Great work!
-
View User Profile
-
Send Message
Posted Aug 11, 2013@Ne0nx3r0
Ok thanks, I shall investigate some more.
-
View User Profile
-
Send Message
Posted Aug 10, 2013@paul988
The number is the number of parameters, you probably mean to use 0 instead of 1, and then 0,1,2 on the bottom one.
-
View User Profile
-
Send Message
Posted Aug 10, 2013@axzxc1236
This has to do with how Essentials runs sudo; I'm not precisely sure why Essentials does this.
I might be able to apply a fix by registering each alias as a command, but I'd need to do some testing to ensure I'm not causing trouble by doing this.
-
View User Profile
-
Send Message
Posted Aug 10, 2013Im running BetterAlias v1.4 and i can't get it to work, this is my alias.yml http://pastebin.com/hGynjM7t. none of my commands work :(
-
View User Profile
-
Send Message
Posted Aug 9, 2013Does Essentials doesn't support Betteralias?
I set a command with betteralias.
BUT sudo command doesn't seem to work with this command
-
View User Profile
-
Send Message
Posted Aug 6, 2013@kamakazi87
Glad to hear you got it working :)
-
View User Profile
-
Send Message
Posted Aug 6, 2013@Ne0nx3r0 I'm a derp...
Edit: Facepalm.. My apologies... Realized my error...
setGold: 0: console /exec u:!1p a:setgroup v:gold
That 0: represents the number of arguments you are taking in?
I changed the 0 to a 1 and it works like a champ.. Thank you so much for your help and patience.
-
View User Profile
-
Send Message
Posted Aug 6, 2013@kamakazi87
I think that's feasible, I'll try to set this up tomorrow night after work.
Edit:
Actually that seems to work currently...
-
View User Profile
-
Send Message
Posted Aug 6, 2013@Ne0nx3r0
So it appears your alias system does not allow for variables unless they are separated by spaces?
The part I care about: https://github.com/Ne0nx3r0/BetterAlias/blob/master/com/ne0nx3r0/betteralias/alias/AliasManager.java#L280-L306 It looks like you require the argument must start with !\d[a-zA-Z]p and you throw away anything after that?
Is there a way you could put an argument in the middle of a string?
An example use case I mentioned earlier: /exec u:!1p a:setgroup v:gold
I cannot put a space between u and !1p because of how bPerm is. Would you be able to make a change to allow !1p to be at the end of a string? And for it to keep the string before the !1p?
I would love to be able to type /setGold Username with /exec u:!1p a:setgroup v:gold to become /exec u:Username a:setgroup v:gold
-
View User Profile
-
Send Message
Posted Aug 6, 2013@xDeeKay
This seems to work fine for me:
I suspect another conflict may exist.
-
View User Profile
-
Send Message
Posted Aug 6, 2013@xDeeKay
I'll try duplicating this tonight when I get home.
-
View User Profile
-
Send Message
Posted Aug 6, 2013@kamakazi87
Because of how this plugin works, basically any recent version will run on any recent version of Bukkit. (recent = last six months)
I only label them explicitly because most users aren't capable/willing to test this.
-
View User Profile
-
Send Message
Posted Aug 6, 2013I noticed there is both 1.4.7 and 1.6.x versions of this plugin... Is there any 1.5.2 versions? Feed The Beast is still on 1.5.2 due to mods and I would love to have this plugin on the server.
I would love to be able to replace /exec u:UserName a:setgroup v:gold with /setGold UserName
with setGold: permissions: mod 1: - /exec u:!1p a:setgroup v:gold
I tried out one of the BetterAliases which booted fine but not all of the aliases were working unfortunately... When I ran setGold like this it didn't replace !1p with a username. Once I changed it to - /exec u: !1p a:setgroup v:gold it no longer found the command. Anyways, 1.5.2 support? Do you have a version? Or do any of the 1.6's work with 1.5.2?
Also <enter required compliment> this seems like the perfect plugin if I can get it working properly :)
-
View User Profile
-
Send Message
Posted Aug 6, 2013@Ne0nx3r0
Is the issue I described only happening to me? Or am I doing something wrong?
-
View User Profile
-
Send Message
Posted Aug 3, 2013@Ne0nx3r0
I simply don't understand it :( damn I'll give it another try maybe