Plugin Help
Plugin Help - The plugin every server well known should have
/rent ? /gs /shop... You know the trubble about tousands of commands over all servers? This plugin allows you to create several help topics which can be reached by a list of keywords. If there is no equal keywords the plugin will try to find a similar one.
Example: /shops is redirected to /shop, because similar and a description of /shop and how to use it is shown to the player. If a command has two similar keywords, they are shown as a list. e.g. there is a keyword live and love and you type in lyve. Then the plugin will show you live and love as a list.
Many thanks for nearly 250 downloads! :D They show me, that writing plugins is still useful :).
Creating help topics
To create a new help topic simply create a new .txt file in the PluginHelp configuration folder.
- 1. line: Command name that should be used otherwise
- 2. line: Permission to see this help, empty if none is needed
- 3. line: Keywords seperated by comma ","
- following lines: all your help text.
The text can contain formating codes like §c.
Other configurations
There are three different main messages: if the topic name is equal, if one topic is found or if more than one similar topic is found. text.onlyhelp, text.nocmd.single and text.nocmd.multi @result is replaced with the found commands, @info is the info and @command with the command the player used to see this site.
Permissions
Every help topic has an own configurable permission name.
Other things
Metrics
This plugin sends data to mcstats.org/plugin/PluginHelp every 15min for improving your experiences (more users = more likely improvements)
How it works
If a command is unknown the plugin will iterate all keywords and compares them with the command via Levensthein-Distance. The best results + its help text and infos will be shown to the player.
@CorperateRaider
Great job! Many thanks for your fast help! It works now for me!
@Oligoboli
It seems they changed the getOnlinePlayers() method so that it returns an arraylist instead of an array (the difference is .length VS .size()) I'll upload an updated version soon
<<code [18:47:03] [pool-3-thread-15/WARN]: Exception in thread "pool-3-thread-15" [18:47:03] [pool-3-thread-15/WARN]: org.apache.commons.lang.UnhandledException: Plugin PluginHelp v1.2 generated an exception while executing task 13 at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player; at me.antonio.noack.pluginhelp.MetricsLite.postPlugin(MetricsLite.java:146) at me.antonio.noack.pluginhelp.MetricsLite.access$3(MetricsLite.java:140) at me.antonio.noack.pluginhelp.MetricsLite$1.run(MetricsLite.java:76) at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)>>
<</code>>
What's wrong?