An Exp Shop is a button that, when pressed, will give you items in exchange for a set amount of exp. You build one by placing a button on a wall, and putting two repeaters and command blocks behind it. Here is a diagram:
b = button
[ ] = wall
r = repeater
[c] = command block
b [ ] r [c] r [c]
In the first command block, you give the player the item if they have enough xp: give @p[lm={XP}] {ITEM ID} {QUANTITY}. In the second command block, you take xp from them: xp -{XP}L @p[lm={XP}]
The problem is that when single player commands are installed, it will take xp from the player but it won't give them the item. If single player commands are not installed, it works perfectly.
Is there a way to make it work both with and without single player commands?