Aliaser
Have you ever wanted to shorten commands? Now you can!
What it does
Aliaser allows you to easily create aliases for your commands!
Some of you may ask, "what does that mean", well, basically, it means another way to type the command.
For example, say I had a command I needed to use lots, lets just say '/areallylongcommand'.
Now, it takes quite a while to type this command, especially if you are typing it lots.
With Aliaser, you can shorten this command, to only require '/arlc'!
Install / Setup
Aliaser requires no setup or configuration, it works straight out of the box! Just drag n' drop into your plugin folder, reload your server, and your ready to go!
Managing Aliases
Well, now you've installed Aliaser, you'll need to create some aliases!
Example: /aliaser add arlc areallylongcommand.
Let me explain the following command to you:
- /aliaser - default Aliaser command
- add - tells Aliaser that you are adding a new alias
- arlc - tells Aliaser that you would like to name this alias arlc, making the command /arlc
- areallylongcommand - tells Aliaser to make the player execute the command /areallylongcommand when they type /arlc.
Another command: /aliaser edit arlc anotherlongcommand
Explanation:
- /aliaser - default Aliaser command
- edit - tells Aliaser that you are editing an alias
- arlc tells Aliaser that you are editing the alias /arlc
- anotherlongcommand tells Aliaser to change /arlc to perform /anotherreallylongcommand
One more command: /aliaser remove arlc
Explanation:
- /aliaser - default Aliaser command
- remove - tells Aliaser that you want to remove an alias
- arlc - tells Aliaser that you want to remove the alias /arlc
All commands
- /aliaser help - views help
- /aliaser add <alias> <command> - adds alias <alias>, and links it to <command>
- /aliaser edit <alias> <command> - update <alias> to point to <command>
- /aliaser remove <alias> - removes the alias <alias>
- /aliaser reload - reloads Aliaser config.yml - only if you edit an alias via config.
Features
- Simple aliasing.
- View aliases
- Simple alias storage
- Aliases can now use arguments! (Version 1.1)
- Player variable (%p) (Version 1.1)
To be added
- Permissions (Commands use the default permissions, but planning to make it so /aliaser can use permissions, not just OP.)
- For example, an alias pointing to /god(essentials command) would require the user to have the permission 'essentials.god')
Bugs
- None known
-
View User Profile
-
Send Message
Posted Aug 24, 2013The /aliaser add command won't work for me... I only get the error: '- Subcommand not found, try /aliaser help!' What am I doing wrong here?
-
View User Profile
-
Send Message
Posted Aug 17, 2013@567legodude
1.5.2 version is compatible with 1.6.2 and vice versa.
-
View User Profile
-
Send Message
Posted Aug 16, 2013@lightniinja
Nice :D
-
View User Profile
-
Send Message
Posted Aug 1, 2013A nice little feature to add is a toggle, by that I mean- Ex) these are the two commands: /<command> on /<command> off
can you make a command like: /aliaser addtoggle <alias> <command> on; <command> off
Now every time you use the command you toggle back and fourth between the two commands, this would be very helpful for commands without a toggle feature.
-
View User Profile
-
Send Message
Posted Jul 18, 2013I have a couple things to ask:
1. Will the 1.6.2 version be compatible with 1.5.2?
2. About how long until the next version, I really need command arguments?
Update:
1. I figured out that I can use arguments in commands by typing them straight into the config.
2. The question still remains. Will 1.6.2 update still be compatible with 1.5.2?
-
View User Profile
-
Send Message
Posted Jul 12, 2013@zedsdeadbabyzedsdead
It's possible, and it's actually a really nice idea.
I'll add it after I've got a 1.6.2 update out, and I have added support for arguments as requested by @Zemorez
-
View User Profile
-
Send Message
Posted Jul 6, 2013It would be awesome to bind multiple commands to single alias. In config it can be like so:
Please, answer if it's even possible, or if it's already implemented and i'm stupid. ty
-
View User Profile
-
Send Message
Posted Jul 5, 2013I'll be getting out a 1.6 release as soon as possible! I'm currently not able to access the download page of Bukkit, for some reason.
-
View User Profile
-
Send Message
Posted Jul 5, 2013@MisterMystery
Hmm, I'd have to look into that one.
At the moment I have the plugin setup to listen for when the player types anything beginning with a '/', which is a predefined event (PlayerCommandPreprocessEvent). Now, if I could find one, it would be easily possible to do this, its just I'm not sure of what the event for that is called.
-
View User Profile
-
Send Message
Posted Jun 29, 2013Is it possible to make the aliased commands be usable from console?
Currently I have to type /time set day in console, rather than just /day which I added.
-
View User Profile
-
Send Message
Posted Jun 14, 2013@Zemorez
I don't think I explained the Player variable very well, so I'll try and explain it a bit better here.
I setup my config the same as yours, so yours will be doing the exact same thing. When you use the player variable, it will replace %p with the name of the player who used the command.
So, for example, if JimmyBobJimmy types /givefly, it will execute 'pex user JimmyBobJimmy add essentials.fly world'. Hope that clears it up for you.
-
View User Profile
-
Send Message
Posted Jun 13, 2013Player variable isn't working right
Here is my config:
For some reason, when I do /givefly Playername, it just says "Error in command syntax" and yes I am on 1.1
-
View User Profile
-
Send Message
Posted Jun 9, 2013@lightniinja
I found a fix, actually. If I type it into the config file straight, rather than in game I'm able to acheive the alias.
Arguments would be great, but so far this is amazing! Thank you!
-
View User Profile
-
Send Message
Posted Jun 5, 2013@MisterMystery
I've only just released this plugin, and are still working on it. Arguments, hopefully, will be added in the next version (Allowing '/time set day' etc);
-
View User Profile
-
Send Message
Posted Jun 5, 2013@gunlex
@nickmoone
Download should be up! I was just waiting on Bukkit to approve the build.
-
View User Profile
-
Send Message
Posted Jun 5, 2013This is awesome!
I've had only one problem with it. It wont let me do commands with spaces.
time set day, for example, doesn't register. or bloodmoon start. Anything that has spaces in it. Do I need any special modifiers or formatting?
-
View User Profile
-
Send Message
Posted Jun 5, 2013Can't wait for arguments to be added.. looks good. Thank you
-
View User Profile
-
Send Message
Posted Jun 5, 2013@nickmoone
Its only in planing :/
I could use this on my server.
-
View User Profile
-
Send Message
Posted Jun 5, 2013Download?