瀏覽代碼

ALPHA9

pull/2/merge
Ad5001 2 年之前
父節點
當前提交
f18ee6266c
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2
    2
      plugin.yml
  2. 2
    2
      src/Ad5001/FloatingTexts/Main.php

+ 2
- 2
plugin.yml 查看文件

@@ -5,7 +5,7 @@ name: FloatingTexts
author: Ad5001
main: Ad5001\FloatingTexts\Main
version: 1.0
api: [3.0.0, 3.0.0-ALPHA3]
api: [3.0.0, 3.0.0-ALPHA3, 3.0.0-ALPHA9]
commands:
createfloat:
description: Create a floating text !
@@ -14,4 +14,4 @@ commands:
permissions:
floatingtexts.cmd:
default: op
...
...

+ 2
- 2
src/Ad5001/FloatingTexts/Main.php 查看文件

@@ -30,7 +30,7 @@ class Main extends PluginBase implements \pocketmine\event\Listener {
@param $args array
return bool
*/
public function onCommand(\pocketmine\command\CommandSender $sender, \pocketmine\command\Command $cmd, $label, array $args): bool {
public function onCommand(\pocketmine\command\CommandSender $sender, \pocketmine\command\Command $cmd, string $label, array $args): bool {
switch($cmd->getName()) {
case "createfloat":
if($sender instanceof Player) {
@@ -86,4 +86,4 @@ class Main extends PluginBase implements \pocketmine\event\Listener {
}
}
}
}
}

Loading…
取消
儲存