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
Does this work with 1.6.4?
i checked all url sign plugins - this is the best one.
MAKE IT SUPPORT &L!!!!!!!!!!!!!!
@Skyost
http://www.thepolltaker.com/poll/502/Would-you-prefer-to-have-the-faction-mobs-plugin-on-this-server-or-not--httpdevbukkit#.UhV2GCqF9KJ
but I can't put that url on there can I? :P
Easy to use alternative can be found here.
If the link is too long, a line breaks will be made.
Then the link is no longer correct.
@Tobiyas
yes i figured it out and worked it out. sorry :)
@semirotta
This is related to mChat. This has nothing to do with LinksOnSigns.
@Xaybiance
I heard of this problems a couple of times.... Could you link your links.yml file?
I can not detect any problems from code. Maybe it puts in an invalid symbol on save... That could make it not load proberly on next load.
Could you upload it?
Linked Signs work after I add them but they don't work after the server is reloaded. I'm not getting any errors in the console. Please help?
This seems like an ongoing problem as I've read in the comments.
Are there any known compatibility issues with other plugins?
I strongly rely on this plugin for many of the features in my server. If you help fix this swiftly, I'd be willing to donate.
Conflicts with mChat?
http://pastebin.com/LkfzaQ7y
I just punched a sign and clicked the link what it gave me, the error popped out in console (mChat error) and my rank prefixes disappeared. Reported this to mChat too but I don't know if you could do something about this ?
@Tobiyas
So no update required? that is great, i love plugins which wont break in every single minecraft update since minecraft keeps updating all the damn time :D
@legoboyz3
That depends on your Permission system.
Some don't give you all permissions even if you are op.
If you have no installed, op should work fine.
@semirotta As far as I see it should not need an update.
Bukkit API has not changed in that manner.
I could just upload a new file linked to Bukkit 1.6 R1 but that would mostly be the same as using the actual Version, when nothing changed in Bukkit itself.
@legoboyz3
Because you must add permissions.
Which is kind of retarded since OP should already have access to EVERY-THING.
Just add permissions.
Hopefully this gets updated to 1.6.1 asap!
Why can't I make a sign when I'm op?
@lenis0012
Yeah. Thanks for the notice.
Fixed in the next version.
It actually is also a Problem with metrics server. When they respond faster, this would not apear! =P
EDIT: Version 1.7 is uploaded. It contains fixes for sync io threading and introduces a reload command (/linksonsignsreload).
This plugin crashed my friends server.
You need to put metrics in an async task!
If you dont do this it could lag server out really bad.
In your metrics.java in public void start.
You have this:
this.taskId = this.plugin.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new Runnable()
This is really abd, this is a Synced task.
Wich means it could easily crash the server.
Metrics is using IO and should nto be synced.
I recon you dont know the difference between sync and async tasks.
Update your metrics form the mcstats site please
Is there a chance to implement reload command? I found it very usefull since editing link.yml file doesent take effect until server is reloaded. And this is one of error i came across:
http://prntscr.com/19zsxr
It seems that this does not work with bpermissions, or is this just me? (I know it's untested, but I don't think it works)
@antichip
This is not included. I could add this. But i'm not sure how to specify on creation of a sign. Maybe as a seperate command: /losrequirepermission permissionnode.
To review permissions for a sign /losseepermissions.
I'll add this to the next version (1.7).
After trying many, or more than a few, I came across this. WOW it works right. Awsome and thank you. I'll post server details when set-up using this great tool.
Can I break permisions down on this further, say so non registered can use sign for registration/login help but no other like to staff credits and dynmap url? Admins have a one click to open server backend or whatever?