LinksOnSigns
LinksOnSigns(V1.10):
With this plugin you can create Signs with links.
The links will be saved as enums. If you use the Sign, the link will be postet to your chat.
Sign creation: (HOW TO)
create new sign with: "newurl" on first line.
Use the Chat-Command: /linksign [enum] [url] (Example: /linksign google www.google.de)
Then punch on the sign with "newurl" on it.
The Sign will auto-fill.
If you then Right-Click on the Sign you will be sent this link in the Chat and you can click on it.
A little Tutorial randycougar made:
Sign Removal:
Since this is asked many times: Take an Apple in your hand and destroy the sign. (yep, thats all the magic)
Additional Commands:
/linksonsignsreload reloads the config.yml + links.yml (also shorter: '/lsr' )
Permission Nodes:
- linksonsigns.create : permission to create a link-sign
- linksonsigns.use : permission to use a link-sign
The links and Enums are saved in the links.yml in the plugin-datafolder:
Example:
links: google: www.google.com forum: www.someawsomeforum.com
The first is the keyword for the sign. The second is the url to send.
Commands:
/linksign [enum] <URL> : The Url does not have to be written, if the enum is already in the links.yml.
Configuration
- stdLINE0: Is the given Identifier in the first line (default: '&9[URL]')
- stdLINE3: Is the standard text in the last line (default: '&cclick me')
- preReplaceIdentifier: Is the Identifier you have to write on the Sign the first time you create it (default: newurl)
- useTinyUrlShortener: If the TinyUrl.com shortening service should be used. (default: false)
- alsoTriggerOnPunch: The sign will also trigger, when the player punchs it. (If the player has an Apple in his hand, it will not be triggered) (default: true)
- displayTriggerMessage : the Message below the Link the Player gets (default:'&5Please click the link above.')
- uploadErrorStackTraces: if 'true' it uploads Errors + Stacktraces to my personal Domain: tobiyas.tk. This helps finding bugs and implementation errors.
- linkFormat : The Format of the URL pasted. %LINK% is replaces by the URL. (default: &3URL: &9&n %LINK%)
Dependencies:
Permissions: (needed one of the ones below:)
- Vault
- PermissionsEx
- GroupManager (from 0.11 ongoing)
- BukkitPermissions (untested)
- bPermissions (untested)
Others:
- There is an integrated Spam-Controll, so that a player can not click more than 1 Sign in 3 seconds.
- Obvius there is a problem with the client detection of some domains. the ".info" domain for example can not be detected by the client. A possible workaround would be url-shortening (e.x. goo.gl)
- This plugin requires Java 8
- This plugin can use TellRaw to format the Links and show a label instead (see config).
The plugin uses Hidendra's Metrics service and sends Metrics data of your Server to the Metrics at 'http://mcstats.org/'. This includes:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
All these services are optional and can be disabled via Configuration.
Also this plugin uses it's own Error-Uploader. It has the capability of uploading stacktraces with some infos to 'tobiyas.tk'.
The Error uploaded is located in dead code, so it will NEVER be called in this plugin. The pure presence still needs to be mentioned.
THANKS
- @Corruptedjak : for inspiring me for the idea of the Plugin
I love this plugin and please consider updating it for 1.3.1. Thank you very much :)
How i can remove a sign?
@SolomonGajda Hm... I see. I'll take a look in it. Think I know where the error is.
A very useful plug-in. I created a sign and then tested it to discover a typo in the URL. I destroyed the sign and made a new sign with the correct URL, but the same enum. The new sign used the old URL instead of the new corrected URL.
Regards,
Solomon Gajda Steward of the Notably Republic MineCraft World
Yay works now! Thanks so much!
@Taeila_Fae It is uploaded and needs approval by Bukkit Staff. Should be available soon.
Sweet, thanks for your time in making the plugin work. :D My members keep bugging me for it :P
@Taeila_Fae grml... Yeah. I'm having problems with the bPermission-API. I'll take a look at it tomorrow. Since I don't use bPermissions personally I haven't tested it completely with it.
Will be fixxed shortly.
Just downloaded the plugin and I am having some difficulties. I have Java 7 and am running bpermissions. The plugin works fine for me since I'm op but when my players with the linkonsigns.use permissions node, they can't click it.
@Mayhem777 It should work with R4 without problems. I just don't want to reload the same file for each version of CB.
It will only break if Bukkit does some major updates. (probably 1.3)
Will be updated to R4? is working awesome for R3 :D
@Tobiyas
Good call on the path. I need to look into that seperately. However the new J6 jar started up without errors. Will post again if I have any in game issues. Thanks for the quick response/resolution.
Oh yeah. You are right. It does not work with Java 6. Hm... I actually compiled it with java 6. It actually works with java 7. Did you correct the path in your startup script? If you still use the java 6 path, it will use java 6 jre. I recompiled it and checked it. The new java 6 version will work with java 6.
@Tobiyas
I'm using Java 7 update 4 on the server (checked and forced update as a precaution) but I get the same message. I attempted to try the J6 version but that turned up the same error.
Error for J7 version below
@domdomegg
Depending on what operation system you are running Minecraft, just download and install the java 7 jre from: oracle. If you are running it at a hoster, you will have to ask him to update it.
@Tobiyas
How do I get java 7?
@domdomegg You need to use java 7
It doesn't work? It says its an invalid plugin when I put it in my plugins folder! My log:
17:25:03 [SEVERE] Could not load 'plugins/LinksOnSigns.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: de/tobiyas/linksonsigns/LinksOnSigns : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:151) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:550) at org.bukkit.Bukkit.reload(Bukkit.java:182) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:475) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:612) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:581) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.UnsupportedClassVersionError: de/tobiyas/linksonsigns/LinksOnSigns : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140) ... 13 more
@theniels17
hold an Apple in Hands while destroying :)
how to remove a linksign without using worldedit?