Skip to content
This repository was archived by the owner on Apr 27, 2025. It is now read-only.

Commit 1f6db76

Browse files
Update to api 3.0.0
1 parent dafb022 commit 1f6db76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProjectInfinity/PocketVote/util/VoteManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function scheduleVRCTask($player) : void {
4444
if((PocketVote::$hasVRC && !$this->plugin->multiserver) || (PocketVote::$hasVRC && $this->plugin->multiserver && $this->plugin->multiserver_role === 'master')) {
4545
if(isset($this->currentVRCTasks[$player])) return;
4646
# Only run when VRC is enabled and multiserver is off or VRC is enabled and multiserver and server role is set to master.
47-
$this->plugin->getScheduler()->scheduleAsyncTask(new VRCCheckTask($player));
47+
$this->plugin->getServer()->getAsyncPool()->submitTask(new VRCCheckTask($player));
4848
}
4949
}
5050

0 commit comments

Comments
 (0)