So, here's the code of my bukkit plugin "GUIOpener"! Feel free to edit something, have fun with it!