I was playing in my single player mode only and it was working fine but when I tried to open my Inv in a friend's cracked server My game paused and It showed Saving World and then the game closed.
Krxwallo commented
Dude it only works in SINGLEPLAYER read the description