SudoAlias
SudoAlias
About
This plugin simply turns 1 or more complex commands into 1 simple command. This one simple command is called an alias. This plugin uses no NMS code/imports. This means it should be completely version independent, it should work on all future Bukkit builds. Also I promise to update this plugin for the official Minecraft API when it is released.
Commands & Permissions
| Command | Description | Permission Node |
|---|---|---|
| /sudoalias | Tells you what version of SudoAlias is installed | None |
| /sudoalias reload | Reloads the configuration | SudoAlias.reload |
"/sudoalias" can be replaced with "/sa" for convenience.
Config
SudoAlias offers a powerful configuration file. If you get lost (I tried to make it as simple as possible!), you can view a help page here on the GitHub Wiki (click).
Permissions
Permissions are generated using the form: SudoAlias.alias.<alias name>
So for example, the default alias included in the config.yml would have the following permission node: SudoAlias.alias.test
Donations
If you want to donate, you can do so here click me with PayPal. Donating is in no way required, it's just nice.
Source Code, Javadoc, and builds
All source code can be found on my Github repository found here: SudoAlias Github Repository Feel free to take code, fork, ect. Credits are appreciated.
This project also has Javadoc, this will help you if you want to contribute code to the project (open source!). The Javadoc is updated every time a build is scheduled View the Javadoc here.
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk. You can grab the latest developer builds here. Whenever I push a commit to Github (upstream) a new build will be created automatically. However I recommend you stick to builds posted on here on BukkitDev as they are usually more stable.
While upgrading to a newer version PLEASE backup the SudoAlias folder inside of the plugins folder. I cannot be held responsible for any lost data during an upgrade. Please play it safe and backup.
-
View User Profile
-
Send Message
Posted Jun 12, 2014@lANTHONYl
I desperately NEED this for my server. Is this in the dev builds?
Thunder, Owner of CastleCraft (play.castlecraftmc.net)
-
View User Profile
-
Send Message
Posted Apr 26, 2014I do not believe this plugin needs to be updated to support Minecraft name changes which will be coming in the near-ish future (UUID). If this plugin does break, please let me know so I can do my best to resolve the issue.
-
View User Profile
-
Send Message
Posted Dec 20, 2013@mrfloris
Yeah I've been changing all of my servers, I need to reinstall Jenkins and get that setup again. The latest version should work just fine with 1.7.x, if it doesn't let me know so I can fix it.
-
View User Profile
-
Send Message
Posted Dec 20, 2013The url to the dev builds seems to be unavailable quite a bit .. is there a 1.7.x build available perhaps?
-
View User Profile
-
Send Message
Posted Oct 7, 2013@Mike724
I use command signs which will grant OP for the moment. Basically, the player only needs OP for as long as it takes to issue the individual command, it doesn't need to wait for any completion. And honestly, using the sudo alias commands should be a seamless kinda thing to the end users. They wouldn't need to be aware that they have OP for a millisecond.
-
View User Profile
-
Send Message
Posted Oct 5, 2013@lANTHONYl
Sorry for the late response, I like the idea but I don't know if the OP one is safe. Could be exploited with a little timing magic.
-
View User Profile
-
Send Message
Posted Oct 3, 2013@Mike724
So instead of having the main runAs node, each command is prefixed by a delimiter that would indicate which mode the command is run as. Let's use an example:
-
View User Profile
-
Send Message
Posted Oct 2, 2013@lANTHONYl
Can you explain what you mean by mixed?
-
View User Profile
-
Send Message
Posted Oct 2, 2013@Mike724
Only request i would have is to allow mixed runAs statements... akin to CommandSigns. Or a runAs: OP option.
-
View User Profile
-
Send Message
Posted Oct 2, 2013@lANTHONYl
Hahaha, yeah. I'm at the point of just maintaining all of my plugins.. and no one has complained of issues, so I assume everything is working fine (that's why there hasn't been an update in a while).
-
View User Profile
-
Send Message
Posted Oct 1, 2013This project looks better every time i peak in :)
-
View User Profile
-
Send Message
Posted Jun 22, 2013Edited the project description. It now includes a link to the Javadoc (this is for developers), and a configuration help page (thanks to wiseguy12851!). Wooot.
-
View User Profile
-
Send Message
Posted Jun 22, 2013@wiseguy12851
Thank you
-
View User Profile
-
Send Message
Posted Jun 22, 2013I created a help page for the config.yml
https://github.com/wiseguy12851/SudoAlias/wiki/config.yml-Help
-
View User Profile
-
Send Message
Posted Jun 21, 2013@Mike724
Yes that worked, thanks
-
View User Profile
-
Send Message
Posted Jun 21, 2013@wiseguy12851
Try replacing // with /. So for example "//pos1" would turn into "/pos1". With regular command you don't even need a /, for example "say hello" works. But worldedit has those interesting commands with two // so this might fix it for you.
-
View User Profile
-
Send Message
Posted Jun 21, 2013Here's the alias part of the config, was just having a bit of fun with worldedit >_^. It seems to all execute ok it just doesn't seem like world edit is latching on to your plugin almost like it's above your plugin so when your plugin issues a command on the players behalf it's like world edit never gets it because it's higher up in the message que (just a guess). Other commands work fine though including the ones that ship with it by default like test or test ? ?.
IronAlias:
command: ironify
runAs: PLAYER
runCommand:
- //pos1
- //pos2
- //outset 25
- //replace 1,2,3,4,5,12,13,17,18,19,20,22,24,35,41,42,43,44,45,46,48,49,57,60,79,80,81,82,86,87,88,89,91,98,99,100,103,110,112,121,123,124,125,126,127,133,152,155,159,172 75%42,25%49
- //replace 8,9 75%wool:blue,25%89
- //replace 10,11 75%wool:red,25%89
successMessage: Ironify Success
-
View User Profile
-
Send Message
Posted Jun 20, 2013@wiseguy12851
Would you mind sharing your config?
-
View User Profile
-
Send Message
Posted Jun 20, 2013I can't get it to work with worldedit, it seems to run ok and gives the success message but minecraft displays several unknown command messages in place of the commands I told it to run
-
View User Profile
-
Send Message
Posted May 31, 2013@pimsserver
Yes this would be possible. It's very simple to do. Look at the default config.yml and you should be able to figure it out. I'm very busy atm so I don't have time to create the config.yml for you.