I can do this for you, I am quite new to the Skript language but I think I can find a way for this to work.
command /xp:
# OPTIONS - YOU CAN CHANGE UNDERNEATH THIS LINE
description: Gives you an XP bottle.
cooldown: 1 minute
cooldown message: &cPlease wait &e%remaining time%&r&c to do this command again!
cooldown bypass: xp.nocooldown # you can give this permission, operators will automatically bypass the cooldown
# DONT CHANGE ANYTHING UNDER THIS LINE
trigger:
if the player's inventory doesn't have space for bottle of enchanting:
send "&cYou do not have enough room in your inventory to get XP!"
cancel command cooldown
else:
give player bottle of enchanting
Just a few things: This was not tested, let me know if it works, you can change the cooldown, message, etc.
Also I just figured out now, this is a very old post, but I already wrote out all the code so I just decided to keep it here I guess.