CommandsEX / Minecraft-CommandsEX

All-in-one modular CraftBukkit administration plugin
http://dev.bukkit.org/server-mods/commandsex
14 stars 10 forks source link

Addition of automatic URL shortening feature and Authentication fix #11

Closed kezz closed 12 years ago

kezz commented 12 years ago

This PR allows the awesome addition of automatic URL shortening.

For example:

Bob chats: "Guys look at this website: www.thisisareallyfuckinglongannoyingurlthatwillpisspeopleoff.com"

CommandsEX changes it to: "Guys look at this website: http://v.gd/4JachD"

The choosing of v.gd for URL shortening is down to two reasons:

  1. It allows people to see where the link is taking them. This prevents people spamming virus links
  2. It has a really simple API

EDIT: It also adds a small Authentication fix thanks to GeorgeK over at StackOverflow!

keir-nellyer commented 12 years ago

This is awesome, adding! Also do we have to compile with 1.7?

kezz commented 12 years ago

@iKeirNez We don't have to... But it allows Switching of Strings and other variables... I like switching a lot... Also faster I think. Plus a few other additions...

keir-nellyer commented 12 years ago

@kezz101 Very nice! I always wanted to use switch statements with strings and such like, we shall keep it at 1.7 unless there is a big demand to go back to 1.6