mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-14 07:09:04 +00:00
25 lines
848 B
Java
25 lines
848 B
Java
package net.simon987.constructionplugin;
|
|
|
|
import net.simon987.server.GameServer;
|
|
import net.simon987.server.game.objects.GameRegistry;
|
|
import net.simon987.server.logging.LogManager;
|
|
import net.simon987.server.plugin.ServerPlugin;
|
|
|
|
public class ConstructionPlugin extends ServerPlugin {
|
|
|
|
@Override
|
|
public void init(GameServer gameServer) {
|
|
|
|
BluePrintUtil.setSecretKey(gameServer.getSecretKey());
|
|
GameRegistry gameRegistry = gameServer.getRegistry();
|
|
|
|
gameRegistry.registerItem(ItemBluePrint.ID, ItemBluePrint.class);
|
|
gameRegistry.registerGameObject(Obstacle.class);
|
|
gameRegistry.registerGameObject(ConstructionSite.class);
|
|
|
|
BluePrintRegistry.INSTANCE.registerBluePrint(ObstacleBlueprint.class);
|
|
|
|
LogManager.LOGGER.info("(Construction Plugin) Initialized construction plugin");
|
|
}
|
|
}
|