URL Shorten
About
URL Shorten is a (currently) small plugin that automatically shortens URLs said in chat and has no other purpose. Currently, the only URL shortening service is http://tinyurl.com/. The number of URL shortening options will hopefully expand in the future.
Known Issues
- This plugin causes small amounts of lag when chatting! It takes time for the minecraft server to communicate with tinyurl. The difference should seem small on small servers, however, this may become more of an issue on larger servers.
- The plugin may become unpredictable if tinyurl.com is, for whatever reason, unreachable. I need someone to verify this for me.
- Punctuation at the end of the URL will get mixed in.
Planned Features
- Option to only shorten URLs that are longer than so many characters.
- Permission to disallow certain people or groups from URL shortening.
Really great! For reference, this does only cause chat lag when there's an URL being sent?
Also, I would really appreciate using bit.ly or goo.gl since they are shorter then tinyurl.com.
This would be perfect! Keep going :3
@Daviidi
This will be fixed soon. I just need to add a little bit of threading.
@ASWeiler
Does your service have an API?
EDIT: I believe I've found it. Nevermind!
Nice plugin idea. Anyway, when the host is unreachable, on my test server, the server completely crashed for 2 seconds before spitting out a long error message (UnknownHostException), the player then chatted the original link. This shouldn't matter too much, but perhaps it should pick up this exception and disable the plugin for a short time, so as not to freeze the server too much. (Preferably, you could run asynchronously, cancelling the original message, and chatting a new one once the requests complete, thereby halting server-wide lag caused by the plugin)
I would like to offer my full support. I run a url shortener that would be perfect.
cmlink.us