mirror of
https://github.com/farcasclaudiu/QRcraft.git
synced 2026-06-29 15:01:18 +03:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7727a91d69 | |||
| 1d31b9e11d | |||
| 2a34b3f605 | |||
| d01098db1a |
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
name: QRcraft
|
name: QRcraft
|
||||||
version: 1.0.2
|
version: 1.0.4
|
||||||
api: 1.0.0
|
api: 1.0.0
|
||||||
main: clodyx\qrcraft\QRcraftPlugIn
|
main: clodyx\qrcraft\QRcraftPlugIn
|
||||||
author: Clodyx
|
author: Clodyx
|
||||||
@@ -18,10 +18,10 @@ commands:
|
|||||||
description: "List QR panels IDs"
|
description: "List QR panels IDs"
|
||||||
permission: clodyx.plugin.qrcraft
|
permission: clodyx.plugin.qrcraft
|
||||||
qrd:
|
qrd:
|
||||||
description: "delete QR panel by ID"
|
description: "Delete QR panel by ID"
|
||||||
permission: clodyx.plugin.qrcraft
|
permission: clodyx.plugin.qrcraft
|
||||||
qrp:
|
qrp:
|
||||||
description: "teleport nearby QR panel by ID"
|
description: "Teleport nearby QR panel by ID"
|
||||||
permission: clodyx.plugin.qrcraft
|
permission: clodyx.plugin.qrcraft
|
||||||
permissions:
|
permissions:
|
||||||
clodyx.plugin.qrcraft:
|
clodyx.plugin.qrcraft:
|
||||||
|
|||||||
@@ -45,10 +45,7 @@ class QRcraftPlugIn extends PluginBase implements CommandExecutor
|
|||||||
|
|
||||||
public function loadConfiguration()
|
public function loadConfiguration()
|
||||||
{
|
{
|
||||||
if (!file_exists($this->getDataFolder() . "config.yml")) {
|
$this->saveDefaultConfig();
|
||||||
@mkdir($this->getDataFolder());
|
|
||||||
file_put_contents($this->getDataFolder() . "config.yml", $this->getResource("config.yml"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onDisable()
|
public function onDisable()
|
||||||
@@ -83,4 +80,4 @@ class QRcraftPlugIn extends PluginBase implements CommandExecutor
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user