Update commands/tps.js
This commit is contained in:
parent
d1d4a44a62
commit
d3cfdf1838
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ module.exports = {
|
||||||
const args = context.arguments
|
const args = context.arguments
|
||||||
switch (args[0]) {
|
switch (args[0]) {
|
||||||
case 'on':
|
case 'on':
|
||||||
if(bot.options.Core.CorelessMode){
|
if(!bot.options.Core.enabled){
|
||||||
throw new CommandError('Coreless mode is active can not execute command!')
|
throw new CommandError('Coreless mode is active can not execute command!')
|
||||||
}else{
|
}else{
|
||||||
bot.tps.on()
|
bot.tps.on()
|
||||||
|
@ -21,7 +21,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case 'off':
|
case 'off':
|
||||||
if(bot.options.Core.CorelessMode){
|
if(!bot.options.Core.enabled){
|
||||||
throw new CommandError('Coreless mode is active can not execute command!')
|
throw new CommandError('Coreless mode is active can not execute command!')
|
||||||
}else{
|
}else{
|
||||||
bot.tps.off()
|
bot.tps.off()
|
||||||
|
|
Loading…
Reference in a new issue