SimpleAlias
Description
SimpleAlias is a little plugin that makes you able to create aliases which execute commands or send messages. These actions can be ordered, based on certain conditions and highly customised. It also allows you to disable commands from other plugins, so you can for example enforce the usage of an alias. Every alias has its own config file where you can customise the settings!
Features
- Creation of an infinite amount of aliases
- Aliases have several actions which are highly customisable
- Aliases have many settings for checks like cost, permission, cooldown, delay etc.
- Aliases act like normal commands so they support tab completion and /? <alias> works
- The usage of aliases can be logged
- Supports dynamic variables like <sender_name>, <world_name>, <group_name>, <faction_name> etc.
- Respects command blockage from every plugin
- Aliases can be fully edited via ingame commands
- Commands can be blocked with a message
All listed features above are referring to version 1.6.1+ of SimpleAlias!
Upcoming Features
- Customisable tab completion for alias arguments
- More action conditions
Wiki
Click here to get to the wiki page where everything of SimpleAlias is explained. There are also installation tutorials and examples for setting up aliases!
Contribute
If you find a bug, encounter an error or have new ideas or suggestions for this plugin feel free to create a ticket so we can react to things faster than posting it in the comments! However you can post feedback in the comments, but please use the ticket system for the things I mentioned.
Source
The source can be found right here!
Metrics
This plugin uses Metrics by BtoBastian to collect various data from servers.
If you don't want Metrics to collect your data you can disable it easily by setting enabled to false in the config file at plugins/bStats/
One last thing, this is my current config: http://pastebin.com/1GLrwVF9 <
- I simply tried adding a message for when the command is executed, which is simply not working. I don't know why it isn't working correctly maybe I typed something wrong or something like that, please help!@TonyDaKing
No problem, I'll push these changes to GitHub soon and upload a new version. Thanks for notifying me! I'm also going to compile this version in Java 7 since a bunch of people seem to not have updated to Java 8 yet.
Oh my god! It works perfectly now! Thank you for all of your support!
@TonyDaKing
Ah well I didn't know about this plugin and I didn't implement a check for the MassiveCore plugin in the FactionsHook. Try out this version. However this one does only support the Factions plugin which requires MassiveCore, but it should fix your error.
EDIT: Removed download to not cause any trouble
No, I'm not running MassiveCore, I'm running this factions, which doesn't use MCore. https://www.spigotmc.org/resources/factionsuuid.1035/
@TonyDaKing
Ah well, but it did fix the former error. This one is a new error which has something to do with the FactionsHook. Are you running Factions and MassiveCore on your server and do you have the latest version of them?
Sadly, still no luck, still the same error http://pastebin.com/8efynpME :( I have no idea what's wrong. I really need this plugin for certain features donators will get.
@TonyDaKing
I just made a little change to the code of the SimpleAlias class which may solve your problem. You can download the file here.
EDIT: Removed download to not cause any trouble
I just set my server to the jar you just gave me and I'm still receiving that same error. I have no idea why, maybe it's a plugin incompatibility? But if it is that sucks because this is the only good alias plugin...
@TonyDaKing
This is the server jar I'm using currenlty. (Freshly patched) Well Vault is not the issue here, the issue is that the instance variable of the SimpleAlias class is not initialized. The alias tries to access it in order to get the VaultHook, but it throws an exception instead since it's not initialized. Normally this variable gets initialized when a new instance of the SimpleAlias class is created, usually when the server starts to load the plugins.
EDIT: Removed the link to not cause any trouble
I'm pretty sure my server is running on java 8_45 64-bit. It seems to be an issue with vault hooking into your plugin though... Could you possibly send me your server jar for me to test it on that version?
@TonyDaKing
Well I ran Spigot 1.8.3-R0.1 on my testserver. Also your alias config works fine on that. I'm updating the Spigot version now and report back if I find a fix for this issue!
EDIT: Your alias still works on my testserver with the 1.8.8-R0.1 version. Also what Java version are you running your server on?
I'm currently running PaperSpigot version 1.8.8 and my alias config is on pastebin here: http://pastebin.com/VPdrs2pv *Note* PaperSpigot can't be the reason it's not working because when I tested it on regular Spigot 1.8.8 it still failed :(
@TonyDaKing
What server version are you running and could you post your alias config? It's strange that it doesn't work for you, since it ran perfect on my testserver. (I also tested like 20+ aliases with different configurations)
I don't know what people are talking about, they must not know how to read, but this config is fairly simple to configure! People want to be able to do things with only a single click but that's not how it works, a good plugin has a complicated config. Keep up the good work! Anyways, this plugin isn't working on my server for some weird reason, it loads up perfectly but upon command execution it says the following: (read from bottom up) 12.08 11:06:48 [Server] INFO ... 14 more 12.08 11:06:48 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at com.darkblade12.simplealias.alias.AliasCommand.execute(AliasCommand.java:39) [?:?] 12.08 11:06:48 [Server] INFO at com.darkblade12.simplealias.alias.Alias.execute(Alias.java:426) [?:?] 12.08 11:06:48 [Server] INFO at com.darkblade12.simplealias.SimpleAlias.getVaultHook(SimpleAlias.java:153) [?:?] 12.08 11:06:48 [Server] INFO at com.darkblade12.simplealias.SimpleAlias.instance(SimpleAlias.java:140) [?:?] 12.08 11:06:48 [Server] INFO Caused by: java.lang.UnsupportedOperationException: There is no enabled instance of SimpleAlias 12.08 11:06:48 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:613) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:710) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:771) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45] 12.08 11:06:48 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_45] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1000) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1165) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:148) [custom.jar:git-PaperSpigot-6d0a86a-53fac9f] 12.08 11:06:48 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing 'airbubble' in com.darkblade12.simplealias.alias.AliasCommand(airbubble) 12.08 11:06:48 [Server] ERROR null 12.08 11:06:48 [Server] INFO /airbubble was executed by TonyDaKing
The new version has been uploaded and can be downloaded here once it's approved. The wiki has also been updated to version 1.6.1!
I'm currently working on an update for this, which will be released really soon. It should fix some compatibility issues, bring back commands from older versions and a converter for configs of version 1.5.0 will be included.
@pitch1317
Merci bien ;D
It is incompatable with factions - I'm using Version 1.5.0 http://dev.bukkit.org/bukkit-plugins/factions/ http://dev.bukkit.org/server-mods/mcore/
28.04 13:42:36 [Multicraft] Skipped 17 lines due to rate limit (30/s) 28.04 13:42:34 [Server] INFO Caused by: java.lang.ClassNotFoundException: com.massivecraft.factions.entity.UPlayer 28.04 13:42:34 [Server] INFO ... 14 more 28.04 13:42:34 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_65] 28.04 13:42:34 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_65] 28.04 13:42:34 [Server] INFO at sun.reflect.GeneratedMethodAccessor570.invoke(Unknown Source) [?:?] 28.04 13:42:34 [Server] INFO at com.darkblade12.simplealias.alias.AliasHandler.onPlayerCommand(AliasHandler.java:127) [?:?] 28.04 13:42:34 [Server] INFO at com.darkblade12.simplealias.alias.types.SingleAlias.execute(SingleAlias.java:36) [?:?] 28.04 13:42:34 [Server] INFO at com.darkblade12.simplealias.alias.CommandAlias.prepareCommand(CommandAlias.java:42) [?:?] 28.04 13:42:34 [Server] INFO at com.darkblade12.simplealias.hook.FactionsHook.getFaction(FactionsHook.java:10) [?:?] 28.04 13:42:34 [Server] INFO Caused by: java.lang.NoClassDefFoundError: com/massivecraft/factions/entity/UPlayer 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:490) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:584) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:731) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:81) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:184) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:65) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:845) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:1007) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:299) [spigot-1.7.9-1543.jar:git-Spigot-1543] 28.04 13:42:34 [Server] INFO org.bukkit.event.EventException 28.04 13:42:34 [Server] ERROR Could not pass event PlayerCommandPreprocessEvent to SimpleAlias v1.5.0
If you need help to config the plugin checks this (French) si vous avez besoin d'aide pour config regardez cette vidéo https://www.youtube.com/watch?v=SAhzoItNspg