Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Compatible to PMMP v3.0.0+ (#31)
Browse files Browse the repository at this point in the history
* API Bump

* Version bump

* Update Main.php

* Update SaveTask.php
  • Loading branch information
Infernus101 authored Jul 15, 2018
1 parent 91a99ee commit 2a3afec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: ProfileUI
author: Infernus101
api: [3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA5, 3.0.0-ALPHA6, 3.0.0-ALPHA7, 3.0.0-ALPHA8, 3.0.0-ALPHA9, 3.0.0-ALPHA10, 3.0.0-ALPHA11]
api: [3.0.0, 4.0.0]
main: Infernus101\Main
version: 4.1.1
version: 4.2.0
commands:
profile:
description: Player profile UI!
2 changes: 1 addition & 1 deletion src/Infernus101/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function onEnable(){
if(is_numeric($interval = $this->config->get("auto-save-interval", 10))){ # Minutes
if($interval > 0){
$interval = $interval * 1200;
$this->getServer()->getScheduler()->scheduleDelayedRepeatingTask(new SaveTask($this), $interval, $interval);
$this->getScheduler()->scheduleDelayedRepeatingTask(new SaveTask($this), $interval, $interval);
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions src/Infernus101/tasks/SaveTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

namespace Infernus101\tasks;

use pocketmine\scheduler\PluginTask;
use pocketmine\scheduler\Task;
use Infernus101\Main;

class SaveTask extends PluginTask{
class SaveTask extends Task{

public $pl;

public function __construct(Main $pl){
parent::__construct($pl);
$this->pl = $pl;
}

Expand Down

1 comment on commit 2a3afec

@SOF3
Copy link
Contributor

@SOF3 SOF3 commented on 2a3afec Jul 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @Infernus101:
I am writing to remind you that Poggit does not accept non-released APIs. API 4.0.0 has not been released yet, so Poggit will automatically remove it from your plugin.yml.

I will not reject this update because of this automatically removed API version, and the rest of the changes in this update look OK. As a result, Your release will still be approved, but please be reminded that your plugin's download from Poggit will not display as supporting 4.0.0.

Note: This comment is created here because this is the last commit when the released build was created.

via Poggit (@poggit-bot)

Please sign in to comment.