Created
July 11, 2019 16:52
-
-
Save brcdev/862d68b99b0a20f2ebcf2ed78187b0ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.spawnerprovider; | |
import net.brcdev.shopgui.provider.spawner.SpawnerProvider; | |
import net.brcdev.shopgui.provider.spawner.YourSpawnerProvider; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class YourPlugin extends JavaPlugin { | |
@Override | |
public void onEnable() { | |
setupSpawners(); | |
} | |
private void setupSpawners() { | |
SpawnerProvider yourSpawnerProvider = new YourSpawnerProvider().hook(this); | |
ShopGuiPlusApi.registerSpawnerProvider(yourSpawnerProvider); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment