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
@Tobiyas
Im not sure. I just did what the video said to do. Is there any other plugin i need to make this work? I have group manager and or permmisionEx as listed above.
@Lighterpeak13
If you post the link in the chat without the plugin, can you click on it?
I just downloaded this plugin and installed it to my server. I am able to make the url sign and click it to view the link, But i cannot open the link page. It does not show the "Yes","Copy To Clipboard", or the "No" button.
@Tobiyas
Yes it does. I've been trying to figure this problem for the past 3 nights and I just can't wrap my finger around it. Even when typed out, it only sends people to the first part of the link before the " / ".
Thanks for the reply Tobiyas
@Tobiyas
I was testing it with www.google.com and I've copied and pasted a few other from my voting sites. It's a bug in the 1.7 versions of minecraft. The gui doesn't pop up so the links are pointless :P you can join my server to test it. "nibscraft.mine.bz" They're right in spawn.
@mcnibs96
That is strange. What URL do you use? Some are not possible to click because of Minecraft. like addresses with www.something.gl
Did you change the URL pattern? (config -> linkFormat).
If there is no Space between before %LINK% it is not clickable. In other words if there is a color code DIRECTLY before the url, it is not clickable. You can try that in normal mc chat. If you write in chat:
'&4bla bla bla click this: &2www.google.de' it won't be clickable. If you write:
'&4bla bla bla click this: &2 www.google.de' It will be clickable. I hope you see the difference.
@PhilMcCrackin
Does the whole link get shown in the Chat?
@Hmmcrunchy
Thank you vety much! :)
great work updating so fast works a treat :)
Please help! Links are clickable but only the first part... example
www.minecraftservers.com/vote/server111
this will only bring people to www.minecraftservers.com anything after the first / doesn't register.
Running spigot 1.7.2
@Tobiyas
Yes. My server is running the last dev build of 1.7.2. I click the sign to get the link and I can't click the link in the chat.
@mcnibs96
Does this still hapen with the version 1.8?
I checked it with CB 1.7.2 and it worked.
I've installed this plugin but when I click the link that shows up only the first part of the links work. Example:
if you click this > bitly.com/17Jxt6z it will bring you to bitly.com instead of the entire link.
Any info is much appreciated.
I can not click links on my Bukkit server with this plugin. I haven't been able to click any URL at all even by just posting it. Has anyone had a similar problem or is it just me? :| Edit: Link to mojangs bug reporter site with the link bug. https://mojang.atlassian.net/browse/MC-30864?jql=text%20~%20%22link%22
@CloudKidZ
Thank you very much for the hints.
The version 1.8 already fixes the bug with the space after the color codes of the link.
The new linkFormat config option has a space between the link and the color code.
I still have to cover the Issue with the spaces in the enum somehow. Maybe by replacing some other symbol by this. Or the parantheses idea. I'll have to see that.
P.s. The version should be out some time soon, when Bukkit applied it.
FYI - I was having trouble getting the links in the chat window to work in the latest 1.7 bukkit build. Turns out if there is a color code right before it, it doesn't work. If I put a space between the color code and the start of the "http", it does:
ex:
&ahttp://:www.yourlink.com - doesn't work &a http://www.yourlink.com - does work.
I don't know if this is a Minecraft 1.7 thing or a problem with the dev version of Bukkit.
To make your plugin work, I went into the links.yml and added single quotes along with a space at the front of every link, and it all works again.
Ex: (see the space between the ' and the http) MyWebsite: ' http://www.hadesportal.com'
HTH
Misty
P.S For a future version, fixing this little bug would be nice:
If I use a 2 word name (with a space) for a link, it works to place on the sign, but if I try using a two word name in the command later to do a second identical sign, it won't work without retyping the whole link again.
In game command
/linksign Our Website http://www.hadesportal.com
makes a sign correctly and adds the following to links.yml
Our Website: http://www.hadesportal.com
Later trying to make an identical sign, none of the following will work:
/linksign Our Website
/linksign 'Our Website'
/linksign "Our Website"
So it can't handle a space in the name.
@Cooljack19
Will be changed. There is a format in 1.8.
%LINK% will be replaced by the link.
So you can remove the '&n' to remove the underlining.
@DevMarti
Just look on GitHub.
@lubby123
Okay. Colorcodes will be added next version.
Edit: Uploaded. Color Codes can now be used almost everywhere + URL Format is editable.
Hallo can you make a pastbin of the source code please. I am kind of a new plugin maker and i want to make a plugin that displays a message when you click it. If you can make the plugin for me thet would be great but i can do it myself. I know it would only take you like 5 minutes to do it so please can you help me out.
Is there a way to change the actual links colour? I know you can change the "Please click the link above" text however I really dislike the fact the link is underlined which causes the text underneath to be cut of slightly.. (OCD lol)
Great plugin Love It ! I wish I could donate :(
Can you add color codes to the things?
@Epicballzy
Since the Bukkit API hasen't changed it should work with no problems with 1.6.4
@ConquestServer
what exactly so you mean by &L?