Shortify
Hate the fact that sharing URLs in Minecraft completely sucks? Hate the truncation? Then this plugin will fix all your problems regarding URLs in Minecraft.
This plugin will shorten all URLs present in a chat message and then changes the message to display the shortened links.
As far as I know (from decompiling and testing other plugins like bShortLinks, URL Shorten, and ShortURL), this is one of a few plugins that uses something other than word.startsWith("http://") for URL detection, and so can handle punctuation, multiple URLs, and URLs anywhere in the message properly.
It is fully configurable, and allows you to choose between a large pool of URL shorteners, including bit.ly, is.gd (default) and is the only URL shortening plugin that supports YOURLS. It also allows you to configure how it shortens the link (see config.yml after installation of the JAR).
Automatically shorten URLs:
With advanced multiple-URL support:
It's compiled for JRE6, and should be compatible with all future CraftBukkit versions.
There are several other URL shortening plugins available, but this one is objectively the best because:
- Optimized to not cause chat lag for messages that don't contain URLs
- Essentially lagless
- Does not require any external dependencies
- Can shorten a URL in ANY position in the message
- Has full REGEX detection to perfectly detect URLs, including advanced punctuation handling
- Allows you to choose between many URL shorteners
- Lets you configure to only shorten URLs above a specific length
- 100% compatible with BukkitForge and MCPC+
Here is a basic configuration description.
Here is the archive of stable versions (from latest to oldest).
Source on Github: https://github.com/vemacs/Shortify
Installation:
Simply download the jar to your /plugins folder, and then restart or reload your server.
Configuration:
See Shortify/config.yml for more info. Shortify should work out of the box, but if you want to use another service, change the config.
Please post feedback and suggestions!
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Is there a way to configure it so it will only shorten links from a certain site? I am trying to do this so that any player is able to use the shortener but only from links from my website.
Okay, it looks like back to mctl it is, too bad :(
@SupaHam
Please update your server to the latest version of Shortify - we are now using vanilla Metrics which doesn't have this issue.
http://pastebin.com/JJX9izwQ
I receive an email telling me to check my cpu usage and while looking through the log, I see this: http://pastebin.com/JJX9izwQ
I just fixe the new problem by switching "replace" to "classic". Now the plugin works fine BUT there's a new problem xD
I think the problem is now with my API Key but if the API Key was bad the plugin will not work wright ?
(Yeah I know, I bother you with my problems :D But I hope one day my problems will help somebody else )
@mercenaire76
Shortify doesn't play well with every single chat plugin around. You can try playing with event priorities, though.
@mercenaire76
Put double quotes around it and try.
OK my problem is fix.
I can see that Shortify work with DynMap but not in game, I think there's a conflict with Mchat...
So does Shortify support chat plugin ?
@diannetea
It'll be somewhat of a major hack to disable shortening per-user.
Can this be toggled on or off per user? Some of the people on my server hate these for whatever reason, but I feel it's necessary.
@tuxed
OK but it just doesn't work even with my Google Api Key... It don't need to have single quotes surrounding it or something like that ?
And the Shortener Value don't need to be surronded by single quotes to ?
Here is my config.yml and can't see what's wrong...
Can you help me please ?
@mercenaire76
"googAPI" is where you put in your Google API key.
Hello,
Could you give an exemple of a working config.yml file with googl please ? :)
Very good job on this plugin, it is very user friendly.
Is there a way to whitelist a certain domain so that it doesn't get shortened?
@paradox1S
It has support for adf.ly
I would use this if it had support for q.gs or j.gs or adf.ly
@deleted_9935739
It's already implemented as shortify.shorten
Can I suggest a permissions node that only allows certain people to shortify urls? I don't want everybody posting suspicious unknown links.
@gbww
@seriosbrad
@ShakyTom
We recommend dev build 10 for link highlighting support, and a fix for goo.gl. Note that these aren't approved by BukkitDev.