fix(rewards): Only create new awards in dev environments

Signed-off-by: Stuart McCulloch Anderson's avatarStuart McCulloch Anderson <stuart@nxfifteen.me.uk>
parent 12e4d1e1
......@@ -64,7 +64,11 @@ class RewardsMinecraft {
public function __construct( $user = null ) {
$this->setAppClass( new Core() );
$this->AwardsGiven = [];
$this->createRewards = true;
if (defined('ENVIRONMENT') && ENVIRONMENT == "develop") {
$this->createRewards = false;
} else {
$this->createRewards = true;
}
$this->setUserID( $user );
$this->user = $user;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment