Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable-double-tap #127

Closed
Pub4Game opened this issue Jul 19, 2015 · 0 comments
Closed

enable-double-tap #127

Pub4Game opened this issue Jul 19, 2015 · 0 comments
Labels

Comments

@Pub4Game
Copy link
Contributor

if($this->getConfig()->get("enable-double-tap")){
if(!isset($this->tap[$player->getName()]) or $now - $this->tap[$player->getName()][1] >= 1.5 or $this->tap[$player->getName()][0] !== $loc){
$this->tap[$player->getName()] = [$loc, $now];
$player->sendMessage($this->getMessage("tap-again", [$shop["itemName"], $shop["price"], $shop["amount"]]));
return;
}else{
unset($this->tap[$player->getName()]);
}
}

Uh.... In what configuration this option "enable-double-tap" ? :D

@onebone onebone added the bug label Jul 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants