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
Hey man, can we has update for 1.4.6? Plugin won't load currently, thanks!
@Tobiyas
It is compatible...Just wondering...lol dont know what to say..GREAT PLUGIN :)
@Gold363 I don't know what to update? It is fully compatible to 1.4.5 R0.2. (maybe event R0.3) Have not seen any errors in Eclipse...
@Tobiyas Sorry bout that nevermind but I think i might customize from what it is now on my server so i might get even more from it ... Can you also update to 1.4.2 or .1.4.5?
@Gold363 Interesting. This is not wat I implemented. If you feel unsecure, check the source code. This command is not included and will not be included.
@Gold363
This is not this plugin doing it.
Dont download this people get free op by doing .opme in the chat
Thanks for almost destroying our server
@EnergyCraft I've been using this plugin for a while and I am in currently the latest dev built (1.4.5) and it works perfectly fine for me but I would love to see an update to this plugin.
Does this work with 1.4.5?
I'm op but I still don't have permissions.
I'm using this plugin with 1.4.2 and seems to be no errors and @comniemeer the difference is what Java you're running, I'm assuming because of the way this plugin is made it can only be used on a specific Java and it does make a difference. I've tested Java 6 / 7 on a Java 7 machine and only 7 worked, 6 screwed up, as the same for the other way around.
Whats the difference between Java 6 and Java 7 Version?
Does the plugin work correctly also on Builds for Bukkit 1.3.2?
@Tobiyas
You should probably put it in the description or config ;D
@Gameguykiler
Just hold an apple in hands while destroying.
How can I destroy the signs now? They keep reappearing when i try to break them.
Why store the link as a enum when its likely less buggy to create an object using the string link and the sign instance and store it in a list? I mean I guess if the enums work fine thats cool, but I'm not quite sure how you create enums during runtime, well atleast it isnt easy if even possible. Also is there a reason why the plugin requires java 7? (I see that theres separate downloads for java 6, however is there even any code changes between them?). Cool plugin though :D
Sometimes linksigns loose their function somehow. The link is still in the config, but it does not respond on clicks and must be recrated. Any idea/fix yet?
Thanks i love it too :D !!!
@VietNg Is in progress. Should be done these days