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
Thanks man, is a nice plugin :3
@Mayhem777 So I think I got it fixed in V1.2 (Uploaded it already. Should be available soon)
@Mayhem777 I think I know where the problem is. I'll take a look in it.
I'm using only 1 color meanwhile :)
My config:
CONFIG: stdLINE0, stdLINE3
stdLINE0: '&1[&4URL&1]'
stdLINE3: '&2Right Click'
preReplaceIdentifier: newurl
displayTriggerMessage: '&5Click here!'
alsoTriggerOnPunch: true
So, if i use more than 1 color the LINKS don't appear on the chat, but the signs works, i mean, the sign get writed but when you click it (no matter if right or left click) they don't do anything, if i don't use more than 1 color the signs and links works well.
Can you Post your config? This would help I think.
Same problem if i use more than 1 color the link don't works (don't appears on chat)
Thanks!!! :D
THIS ROCKS!
@Mayhem777 Thanks for the notice. 1. done (Text that is displayed below the link is configurable) 2. color bug should be done 3. the recognation string works for me. Couldn't find an error there.
New Version will be available soon.
PLEASE! make texts configurable, i'm spanish :3
Bugs: if you put spaces or more than one color on text like that: "&9--> &4URL" signs don't works, all characters must be stick together :)
AND finally: you can't swtch the "newurl" to other text, you can't make the link.
@Tobiyas
Thanks! It is working great now!
Current Problem with old Version 1.0. Detection did not work correct for new Signs.
It is now fixed and will be available, when dev.bukkit approved it. (Done)
@Mirrorsounds
first: oh yeah... Just realised I did a mistake in the config. If you change the config to "&6[URL]" it should work.
Second: I'll take a look in it. I'm not sure though.
Third: Sure. No problem.
I love this plugin! Three questions though.
First: When I punch the sign the color codes don't show up as the color, they just show up written in black. However, I can re-type the sign (manually) and the color codes work and the sign works. I don't know if this is just me having this issue or not.
Second: Is there a way to just make it pull up the website? Without them having to also click the link the shows up in chat?
Third: Can you add a config option that will pop up the link if it is punched as well?
Thanks so much, this is a great plugin!
After a restart the signs don't work anymore :(
How to change the klick me to Click me?
@TaterTotsYum Ah okay. Got what you want. I think. I'll set it on my TODO list.
@Tobiyas I want to be able to get rid of the [Url] and the klick me. And then just put the text with the command. So: Nothing Donate nothing Click This Sign
So the last line is default for all signs.
@TaterTotsYum hm... The enum is tought for the purpose. So if you use: /linksign Donate www.somedonationurl.com and punch a sign, it will look like this:
___ [URL] Donate
click me
------this is the actual version. I thought that you could change the "[URL]" and "clickme" to another standard text. But I don't want to make it differet on every sign. It would be more complicated to check if the sign is an URL sign.