Skip to content

Commit a7f0dfd

Browse files
committed
API version bump
1 parent 37b9c05 commit a7f0dfd

File tree

24 files changed

+102
-12
lines changed

24 files changed

+102
-12
lines changed

EconomyAPI/plugin.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ api:
1515
- 3.0.0-ALPHA8
1616
- 3.0.0-ALPHA9
1717
- 3.0.0-ALPHA10
18+
- 3.0.0-ALPHA11
19+
- 3.0.0-ALPHA12
20+
- 3.0.0-ALPHA13
21+
- 3.0.0-ALPHA14
22+
- 3.0.0-ALPHA15
1823

1924
permissions:
2025
economyapi.*:

EconomyAPI/src/onebone/economyapi/command/GiveMoneyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use onebone\economyapi\EconomyAPI;
1111

12-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
12+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
1313
abstract class _GiveMoneyCommand extends Command{
1414
public function execute(CommandSender $sender, string $label, array $args): bool{
1515
return $this->_execute($sender, $label, $args);

EconomyAPI/src/onebone/economyapi/command/MyMoneyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use onebone\economyapi\EconomyAPI;
1212

13-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
13+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
1414
abstract class _MyMoneyCommand extends Command{
1515
public function execute(CommandSender $sender, string $label, array $args): bool{
1616
return $this->_execute($sender, $label, $args);

EconomyAPI/src/onebone/economyapi/command/MyStatusCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use onebone\economyapi\EconomyAPI;
1111

12-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
12+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
1313
abstract class _MyStatusCommand extends Command{
1414
public function execute(CommandSender $sender, string $label, array $args): bool{
1515
return $this->_execute($sender, $label, $args);

EconomyAPI/src/onebone/economyapi/command/PayCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use onebone\economyapi\EconomyAPI;
1111
use onebone\economyapi\event\money\PayMoneyEvent;
1212

13-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
13+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
1414
abstract class _PayCommand extends Command{
1515
public function execute(CommandSender $sender, string $label, array $args): bool{
1616
return $this->_execute($sender, $label, $args);

EconomyAPI/src/onebone/economyapi/command/SeeMoneyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use onebone\economyapi\EconomyAPI;
1111

12-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
12+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
1313
abstract class _SeeMoneyCommand extends Command{
1414
public function execute(CommandSender $sender, string $label, array $args): bool{
1515
return $this->_execute($sender, $label, $args);

EconomyAPI/src/onebone/economyapi/command/SetLangCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
use onebone\economyapi\EconomyAPI;
1010

11-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
11+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
1212
abstract class _SetLangCommand extends Command{
1313
public function execute(CommandSender $sender, string $label, array $args): bool{
1414
return $this->_execute($sender, $label, $args);

EconomyAPI/src/onebone/economyapi/command/SetMoneyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use onebone\economyapi\EconomyAPI;
1212

13-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
13+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
1414
abstract class _SetMoneyCommand extends Command{
1515
public function execute(CommandSender $sender, string $label, array $args): bool{
1616
return $this->_execute($sender, $label, $args);

EconomyAPI/src/onebone/economyapi/command/TakeMoneyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use onebone\economyapi\EconomyAPI;
1111

12-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
12+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
1313
abstract class _TakeMoneyCommand extends Command{
1414
public function execute(CommandSender $sender, string $label, array $args): bool{
1515
return $this->_execute($sender, $label, $args);

EconomyAPI/src/onebone/economyapi/command/TopMoneyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
use onebone\economyapi\EconomyAPI;
2727
use onebone\economyapi\task\SortTask;
2828

29-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
29+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
3030
abstract class _TopMoneyCommand extends Command{
3131
public function execute(CommandSender $sender, string $label, array $args): bool{
3232
return $this->_execute($sender, $label, $args);

EconomyAPI/src/onebone/economyapi/task/MySQLPingTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use onebone\economyapi\EconomyAPI;
2525
use pocketmine\scheduler\PluginTask;
2626

27-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
27+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
2828
abstract class _MySQLPingTask extends PluginTask{
2929
public function onRun(int $currentTick){
3030
$this->_onRun($currentTick);

EconomyAPI/src/onebone/economyapi/task/SaveTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
use pocketmine\scheduler\PluginTask;
2626

27-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
27+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
2828
abstract class _SaveTask extends PluginTask{
2929
public function onRun(int $currentTick){
3030
$this->_onRun($currentTick);

EconomyAirport/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ version: "2.0.4"
33
author: onebone
44
api:
55
- 3.0.0-ALPHA7
6+
- 3.0.0-ALPHA8
7+
- 3.0.0-ALPHA9
8+
- 3.0.0-ALPHA10
9+
- 3.0.0-ALPHA11
10+
- 3.0.0-ALPHA12
11+
- 3.0.0-ALPHA13
12+
- 3.0.0-ALPHA14
13+
- 3.0.0-ALPHA15
614

715
main: onebone\economyairport\EconomyAirport
816
depend: [EconomyAPI]

EconomyAuction/plugin.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ api:
1414
- 3.0.0-ALPHA8
1515
- 3.0.0-ALPHA9
1616
- 3.0.0-ALPHA10
17+
- 3.0.0-ALPHA11
18+
- 3.0.0-ALPHA12
19+
- 3.0.0-ALPHA13
20+
- 3.0.0-ALPHA14
21+
- 3.0.0-ALPHA15
1722

1823
author: onebone
1924
depend: [EconomyAPI]

EconomyAuction/src/onebone/economyauction/EconomyAuction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function quitAuction($auction){
268268
}
269269
}
270270

271-
if(version_compare(\pocketmine\API_VERSION, "3.0.0-ALPHA7") >= 0){
271+
if((new \ReflectionClass("pocketmine\\plugin\\PluginBase"))->getMethod("onCommand")->hasReturnType()){
272272
class EconomyAuction extends _EconomyAuction{
273273
public function onCommand(CommandSender $sender, Command $command, string $label, array $args): bool {
274274
return parent::_onCommand($sender, $command, $label, $args);

EconomyCasino/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ version: "2.0.2"
44
author: onebone
55
api:
66
- 3.0.0-ALPHA7
7+
- 3.0.0-ALPHA8
8+
- 3.0.0-ALPHA9
9+
- 3.0.0-ALPHA10
10+
- 3.0.0-ALPHA11
11+
- 3.0.0-ALPHA12
12+
- 3.0.0-ALPHA13
13+
- 3.0.0-ALPHA14
14+
- 3.0.0-ALPHA15
715

816
depend: [EconomyAPI]
917

EconomyJob/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ main: onebone\economyjob\EconomyJob
33
version: "2.0.4"
44
api:
55
- 3.0.0-ALPHA7
6+
- 3.0.0-ALPHA8
7+
- 3.0.0-ALPHA9
8+
- 3.0.0-ALPHA10
9+
- 3.0.0-ALPHA11
10+
- 3.0.0-ALPHA12
11+
- 3.0.0-ALPHA13
12+
- 3.0.0-ALPHA14
13+
- 3.0.0-ALPHA15
614

715
depend: [EconomyAPI]
816
author: onebone

EconomyLand/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ name: EconomyLand
22
main: onebone\economyland\EconomyLand
33
api:
44
- 3.0.0-ALPHA7
5+
- 3.0.0-ALPHA8
6+
- 3.0.0-ALPHA9
7+
- 3.0.0-ALPHA10
8+
- 3.0.0-ALPHA11
9+
- 3.0.0-ALPHA12
10+
- 3.0.0-ALPHA13
11+
- 3.0.0-ALPHA14
12+
- 3.0.0-ALPHA15
513

614
version: "2.0.9"
715
author: onebone

EconomyPShop/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ main: onebone\economypshop\EconomyPShop
55

66
api:
77
- 3.0.0-ALPHA7
8+
- 3.0.0-ALPHA8
9+
- 3.0.0-ALPHA9
10+
- 3.0.0-ALPHA10
11+
- 3.0.0-ALPHA11
12+
- 3.0.0-ALPHA12
13+
- 3.0.0-ALPHA13
14+
- 3.0.0-ALPHA14
15+
- 3.0.0-ALPHA15
816

917
permissions:
1018
economypshop.*:

EconomyProperty/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ version: "2.0.6"
44
author: onebone
55
api:
66
- 3.0.0-ALPHA7
7+
- 3.0.0-ALPHA8
8+
- 3.0.0-ALPHA9
9+
- 3.0.0-ALPHA10
10+
- 3.0.0-ALPHA11
11+
- 3.0.0-ALPHA12
12+
- 3.0.0-ALPHA13
13+
- 3.0.0-ALPHA14
14+
- 3.0.0-ALPHA15
715

816
depend:
917
- EconomyLand

EconomySell/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ name: EconomySell
22
version: "2.0.7"
33
api:
44
- 3.0.0-ALPHA7
5+
- 3.0.0-ALPHA8
6+
- 3.0.0-ALPHA9
7+
- 3.0.0-ALPHA10
8+
- 3.0.0-ALPHA11
9+
- 3.0.0-ALPHA12
10+
- 3.0.0-ALPHA13
11+
- 3.0.0-ALPHA14
12+
- 3.0.0-ALPHA15
513

614
main: onebone\economysell\EconomySell
715
author: onebone

EconomyShop/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ name: EconomyShop
22
version: "2.0.7"
33
api:
44
- 3.0.0-ALPHA7
5+
- 3.0.0-ALPHA8
6+
- 3.0.0-ALPHA9
7+
- 3.0.0-ALPHA10
8+
- 3.0.0-ALPHA11
9+
- 3.0.0-ALPHA12
10+
- 3.0.0-ALPHA13
11+
- 3.0.0-ALPHA14
12+
- 3.0.0-ALPHA15
513

614
main: onebone\economyshop\EconomyShop
715
author: onebone

EconomyTax/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ author: onebone
44
version: "2.0.3"
55
api:
66
- 3.0.0-ALPHA7
7+
- 3.0.0-ALPHA8
8+
- 3.0.0-ALPHA9
9+
- 3.0.0-ALPHA10
10+
- 3.0.0-ALPHA11
11+
- 3.0.0-ALPHA12
12+
- 3.0.0-ALPHA13
13+
- 3.0.0-ALPHA14
14+
- 3.0.0-ALPHA15
715

816
depend: [EconomyAPI]
917
permissions:

EconomyUsury/plugin.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ version: "1.0.1"
33
author: onebone
44
api:
55
- 3.0.0-ALPHA7
6+
- 3.0.0-ALPHA8
7+
- 3.0.0-ALPHA9
8+
- 3.0.0-ALPHA10
9+
- 3.0.0-ALPHA11
10+
- 3.0.0-ALPHA12
11+
- 3.0.0-ALPHA13
12+
- 3.0.0-ALPHA14
13+
- 3.0.0-ALPHA15
614

715
main: onebone\economyusury\EconomyUsury
816
depend: [EconomyAPI]

0 commit comments

Comments
 (0)