Mineuniverse
Log in Register
Plugins

ShortLink

Shortens Urls in chat
by _ForgeUser8611315
Download Claim this project
2,152 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Admin Tools Chat Related Developer Tools Informational Mechanics

ShortLink

This plugin will parse chat and replace any links found, with bit.ly links.

Installation

Download the zip file, extract the jar and folder to your plugin folder. To use your own bit.ly api key and username, just modify the configuration file.

Using ShortLink in your own plugin

Create a new ShortenUrlTask with the parameters (String bitlyUsername, String bitlyApiKey, String messageToParse)

From here, you can do one of two things

  1. you can use parseStringForUrl, which will return the string with replaced bitly links.
  2. pass it into the scheduler to parse it in a new thread.

The reason i let you parse it in a seperate thread, is because.. Well, if bitly is down and you try to parse in the main server thread, your server will time out.

Other info

This is my first plugin release. Typically i dont like to release plugins, because those that i make are highly proprietary to my server. However, i hadnt seen a plugin like this, and decided to create one.

Note that it contains regex to detect links, and i have no idea how to work regex, so if it breaks, i have no idea how to fix it. I dont release this with the explicit plan of keeping up to date with it, so if i do, lucky you, if not, heres my github

ShortLink 1.0
MC CB 1.2.5-R1.2
Release 2012-05-05 Get

You Might Also Like

Little Anti-Swearing Plugin
A small plugin to censore unsuitable words. Words is customizable. Plugin can kick player or only censore word.
9,982
BuildAPrefix
A self-service prefix plugin!
9,972
NoSwearPlus
NoSwearPlus
9,969
FakeTalk Reloaded
FakeTalk Reloaded
9,952
RoboticStaff
RoboticStaff
9,944
AMChat
Chat using a radio on frequencies, limit local chat
9,926