Skip to content

Commit fbe77b5

Browse files
committed
Accept MatrixShop overflow deliveries and register static commands
1 parent 825cb48 commit fbe77b5

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

src/main/kotlin/com/y54895/matrixstorage/MatrixStorage.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ object MatrixStorage : Plugin() {
4040
WarehouseService.reload()
4141
ExternalPlacementSupport.reload()
4242
MatrixShopBridge.reload()
43-
MatrixStorageCommands.register()
4443

4544
MatrixConsoleVisuals.renderReady(
4645
branding = MatrixStoragePlatform.branding,
@@ -61,6 +60,10 @@ object MatrixStorage : Plugin() {
6160
}
6261
}
6362

63+
override fun onActive() {
64+
MatrixStorageCommands.register()
65+
}
66+
6467
override fun onDisable() {
6568
StoragePersistenceService.shutdown()
6669
MatrixConsoleVisuals.renderShutdown(

src/main/resources/plugin.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: MatrixStorage
2+
main: com.y54895.matrixstorage.taboolib.platform.BukkitPlugin
3+
version: 1.0.0
4+
authors:
5+
- '54895y'
6+
depend:
7+
- 'MatrixLib'
8+
api-version: 1.12
9+
folia-supported: true
10+
11+
commands:
12+
matrixstorage:
13+
description: MatrixStorage main command
14+
usage: /matrixstorage
15+
aliases: [mstorage]
16+
matrixstorageadmin:
17+
description: MatrixStorage admin command
18+
usage: /matrixstorageadmin
19+
permission: matrixstorage.admin
20+
aliases: [msa2]
21+
mailbox:
22+
description: MatrixStorage mailbox command
23+
usage: /mailbox
24+
warehouse:
25+
description: MatrixStorage warehouse command
26+
usage: /warehouse

0 commit comments

Comments
 (0)