Update core.lua

Made /pe enable and /pe disable actually do what they should, rather than just toggling the state.