Skip to content

Commit

Permalink
Convert to plugin so that legacy Materials are not used
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Nov 25, 2024
1 parent 2bc3b2c commit eda4f67
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.wasteofplastic.invswitcher;


import world.bentobox.bentobox.api.addons.Addon;
import world.bentobox.bentobox.api.addons.GameModeAddon;
import world.bentobox.bentobox.api.addons.Pladdon;

public class InvSwitcherPladdon extends Pladdon {

private Addon addon;

@Override
public Addon getAddon() {
if (addon == null) {
addon = new InvSwitcher();
}
return addon;
}
}
9 changes: 9 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: BentoBox-InvSwitcher
main: com.wasteofplastic.invswitcher.InvSwitcherPladdon
version: ${project.version}${build.number}
api-version: "1.21"

authors: [tastybento]
contributors: ["The BentoBoxWorld Community"]
website: https://bentobox.world
description: ${project.description}

0 comments on commit eda4f67

Please sign in to comment.