Skip to content

Commit eda4f67

Browse files
committed
Convert to plugin so that legacy Materials are not used
1 parent 2bc3b2c commit eda4f67

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.wasteofplastic.invswitcher;
2+
3+
4+
import world.bentobox.bentobox.api.addons.Addon;
5+
import world.bentobox.bentobox.api.addons.GameModeAddon;
6+
import world.bentobox.bentobox.api.addons.Pladdon;
7+
8+
public class InvSwitcherPladdon extends Pladdon {
9+
10+
private Addon addon;
11+
12+
@Override
13+
public Addon getAddon() {
14+
if (addon == null) {
15+
addon = new InvSwitcher();
16+
}
17+
return addon;
18+
}
19+
}

src/main/resources/plugin.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: BentoBox-InvSwitcher
2+
main: com.wasteofplastic.invswitcher.InvSwitcherPladdon
3+
version: ${project.version}${build.number}
4+
api-version: "1.21"
5+
6+
authors: [tastybento]
7+
contributors: ["The BentoBoxWorld Community"]
8+
website: https://bentobox.world
9+
description: ${project.description}

0 commit comments

Comments
 (0)