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 Apr 5, 2014Is there a way to disable the message notifying a player he does not have permissions for an alias?
-
View User Profile
-
Send Message
Posted Apr 5, 2014If I put an alias like "command reload" it doesn't like the word reload for the sub-command. I put "command restart" it works.
-
View User Profile
-
Send Message
Posted Apr 5, 2014@Ben0nator
OH Thank you!
-
View User Profile
-
Send Message
Posted Apr 5, 2014@TheCoolGuy123_5_Minecraft_
You can use spaces in commands if you use quotation marks. So your aliases.yml would look something like this:
"command off":
0: /command1
"command on":
0: /command2
-
View User Profile
-
Send Message
Posted Apr 5, 2014@Ne0nx3r0
Still waiting a reply for my suggestion...
-
View User Profile
-
Send Message
Posted Apr 4, 2014@Ne0nx3r0
Currently I don't think so. You could create an alias that executes two other aliases that have separate permissions, but this seems like a hacky solution.
I'll take a look at what it would take to update this plugin to accommodate some of these suggestions.
-
View User Profile
-
Send Message
Posted Apr 4, 2014@andyhan123
I'd bet good money your aliases file is messed up on that server. Try copying it from one of the identical ones that work or reviewing your YML file for spacing errors.
-
View User Profile
-
Send Message
Posted Apr 4, 2014Thanks for creating one of the most useful plugins out there!
One question/possible suggestion:
Is there a way to set different outputs for a command, and the output is chosen based on the user's permissions?
For example:
The alias "/text" for a user with permission "node.one" replies "This is output 1!"
"/text" for a user with permission "node.two" replies "This is output 2!"
If I am confusing, or there is some other way to do this, please let me know. ;)
Thanks.
-
View User Profile
-
Send Message
Posted Mar 29, 2014I've got 5 servers running identical spigot build but only one of them is throwing me error while the others work fine as usual, Error log as follows. (Read from down to up)
30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:469) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:562) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:700) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.ServerConnection.c(ServerConnection.java:77) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:65) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:829) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:984) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:706) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:175) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at com.rylinaux.plugman.PlugManCommands.onCommand(PlugManCommands.java:49) [PlugMan.jar:?] 30.03 01:47:29 [Server] INFO at com.rylinaux.plugman.commands.LoadCommand.execute(LoadCommand.java:51) [PlugMan.jar:?] 30.03 01:47:29 [Server] INFO at com.rylinaux.plugman.utilities.PluginUtils.load(PluginUtils.java:168) [PlugMan.jar:?] 30.03 01:47:29 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:390) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [spigot.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] 30.03 01:47:29 [Server] INFO at com.ne0nx3r0.betteralias.BetterAlias.onEnable(BetterAlias.java:15) [?:?] 30.03 01:47:29 [Server] INFO at com.ne0nx3r0.betteralias.alias.AliasManager.<init>(AliasManager.java:33) [?:?] 30.03 01:47:29 [Server] INFO at com.ne0nx3r0.betteralias.alias.AliasManager.loadAliases(AliasManager.java:80) [?:?] 30.03 01:47:29 [Server] INFO at java.lang.Integer.parseInt(Integer.java:527) [?:1.7.0_51] 30.03 01:47:29 [Server] INFO at java.lang.Integer.parseInt(Integer.java:492) [?:1.7.0_51] 30.03 01:47:29 [Server] INFO at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) [?:1.7.0_51] 30.03 01:47:29 [Server] INFO java.lang.NumberFormatException: For input string: "permissions" 30.03 01:47:29 [Server] ERROR Error occurred while enabling BetterAlias v1.4.2 (Is it up to date?)
-
View User Profile
-
Send Message
Posted Mar 28, 2014I have a suggestion:
If someone does /command on then do this Then if someone does /command off then do this?
Maybe !1[word] <- it looks the word for the first argument.
-
View User Profile
-
Send Message
Posted Mar 18, 2014@Ne0nx3r0
Thanks a lot bro!
My players will love the changeable prefixs!
Thanks for all the help! Justin
-
View User Profile
-
Send Message
Posted Mar 18, 2014@Justin330
I just realized what's wrong; you need to put 0 for the one with !name. You aren't taking any parameters (1: means you expect one paramater).
Here's a pastebin that shows how to do your alias.
-
View User Profile
-
Send Message
Posted Mar 17, 2014@Ne0nx3r0
Thanks for your reply! !name does work... it gives me a "Unknown command. Type "Help" for help." and other commands in my config are working (at the same time as my other ones not working)... and the command I put in works if I swap it out with !1 and Seems like Im the only with this problem so Ill find a work around! Thanks for the Plugin! Justin
-
View User Profile
-
Send Message
Posted Mar 17, 2014@Justin330
I'm not sure what to tell you except that !name does work (it is replaced with the command sender's username (or console)); you may need to check your event log for errors in your YML file.
-
View User Profile
-
Send Message
Posted Mar 17, 2014Any help for my problem? Swappable prefixs are waiting for it =D Ant
-
View User Profile
-
Send Message
Posted Mar 15, 2014O Junk, my last comment just got shoved together... basically !name doesnt work, but !1 does... Thanks
-
View User Profile
-
Send Message
Posted Mar 15, 2014I have a problem...
This works... with this command /pvip antares330
pvip: permission: vipprefix 1: - console /pex user !1 prefix &0[&1VIP&0]&f
This Doesnt with this command /pvip (this command should set your own prefix to VIP)
pvip: permission: vipprefix 1: - console /pex user !name prefix &0[&1VIP&0]&f
I think this might be because it tries and puts the name with the command without space... Any ideas on how to fix this would be great! Ant
-
View User Profile
-
Send Message
Posted Mar 14, 2014@TheCoolGuy123_5_Minecraft_
I'm not sure what you mean about the first thing, but I can see about adding the other two.
-
View User Profile
-
Send Message
Posted Mar 14, 2014Hey, awesome plugin!!
I have one question: If i configure a comand to execute this:
How i make to, if the player dont have the money, dont receive the cart? ThankYou.
-
View User Profile
-
Send Message
Posted Mar 14, 2014Add a permission fail, cost thing and also a cooldown.