Update 'ASR/src/iJoshuaHD/iMCPE/ASR/Commands.php'
This commit is contained in:
parent
45281825af
commit
576454fc1a
@ -25,12 +25,10 @@ class Commands implements CommandExecutor{
|
|||||||
if(isset($args[0])){
|
if(isset($args[0])){
|
||||||
if(!is_numeric($args[0])){
|
if(!is_numeric($args[0])){
|
||||||
$sender->sendMessage("[ASR] Only Numbers is prohibited.");
|
$sender->sendMessage("[ASR] Only Numbers is prohibited.");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if($args[0] > 60){
|
if($args[0] > 60){
|
||||||
$sender->sendMessage("[ASR] It's not advised the value would be more than 60. If you want to increase it, edit the config.yml instead as this plugin won't allow you to set the value more than the said value because it's not prescribed.");
|
$sender->sendMessage("[ASR] It's not advised the value would be more than 60. If you want to increase it, edit the config.yml instead as this plugin won't allow you to set the value more than the said value because it's not prescribed.");
|
||||||
$sender->sendMessage("[ASR] Only Numbers is prohibited.");
|
$sender->sendMessage("[ASR] Only Numbers is prohibited.");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
$this->plugin->setValueTimer($args[0]);
|
$this->plugin->setValueTimer($args[0]);
|
||||||
$sender->sendMessage("[ASR] You have set the timer to " . $args[0] . " min/s. The changes will apply after the next server restart.");
|
$sender->sendMessage("[ASR] You have set the timer to " . $args[0] . " min/s. The changes will apply after the next server restart.");
|
||||||
|
Loading…
Reference in New Issue
Block a user