org.spongepowered.api.event.game.state.GamePostInitializationEvent Java Examples
The following examples show how to use
org.spongepowered.api.event.game.state.GamePostInitializationEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VirtualChestPlugin.java From VirtualChest with GNU Lesser General Public License v3.0 | 6 votes |
@Listener public void onPostInitialization(GamePostInitializationEvent event) { this.update = new VirtualChestPluginUpdate(this); this.translation = new VirtualChestTranslation(this); this.recordManager = new VirtualChestRecordManager(this); this.virtualChestActions = new VirtualChestActions(this); this.commandAliases = new VirtualChestCommandAliases(this); this.economyManager = new VirtualChestEconomyManager(this); this.dispatcher = new VirtualChestInventoryDispatcher(this); this.scriptManager = new VirtualChestJavaScriptManager(this); this.permissionManager = new VirtualChestPermissionManager(this); this.placeholderManager = new VirtualChestPlaceholderManager(this); this.virtualChestCommandManager = new VirtualChestCommandManager(this); this.actionIntervalManager = new VirtualChestActionIntervalManager(this); if (Sponge.getPluginManager().getPlugin("byte-items").isPresent()) { byteItemsService = Sponge.getServiceManager().provide(ByteItemsService.class).get(); } }
Example #2
Source File: CommandtimerModule.java From UltimateCore with MIT License | 6 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { CommandsConfig config = UltimateCore.get().getCommandsConfig(); CommentedConfigurationNode node = config.get(); boolean modified = false; for (Command cmd : UltimateCore.get().getCommandService().getCommands()) { CommentedConfigurationNode cmdnode = node.getNode("commands", cmd.getIdentifier()); if (cmdnode.getNode("cooldown").getValue() == null) { modified = true; cmdnode.getNode("cooldown").setComment("Time in seconds that a player has to wait between uses of the command. (0 to disable)"); cmdnode.getNode("cooldown").setValue("0s"); } if (cmdnode.getNode("warmup").getValue() == null) { modified = true; cmdnode.getNode("warmup").setComment("Time in seconds that a player has to wait before the command is executed. (0 to disable)"); cmdnode.getNode("warmup").setValue("0s"); } } if (modified) { config.save(node); } onReload(null); new CommandtimerPermissions(); }
Example #3
Source File: ChatUI.java From ChatUI with MIT License | 5 votes |
@Listener(order = Order.POST) public void onPostInit(GamePostInitializationEvent event) { Optional<ProviderRegistration<PaginationService>> optService = Sponge.getGame().getServiceManager().getRegistration(PaginationService.class); if (optService.isPresent()) { PaginationService service = optService.get().getProvider(); Sponge.getGame().getServiceManager().setProvider(this, PaginationService.class, new TabbedPaginationService(service)); } this.features.load(); }
Example #4
Source File: Prism.java From Prism with MIT License | 4 votes |
@Listener public void onPostInitialization(GamePostInitializationEvent event) { getConfiguration().saveConfiguration(); }
Example #5
Source File: EagleFactionsPlugin.java From EagleFactions with MIT License | 4 votes |
@Listener public void onServerPostInitialization(final GamePostInitializationEvent event) { startFactionsRemover(); }
Example #6
Source File: ModulePostInitializeEvent.java From UltimateCore with MIT License | 4 votes |
/** * Get the GamePostInitializationEvent when this was called. */ public GamePostInitializationEvent getEvent() { return event; }
Example #7
Source File: ModulePostInitializeEvent.java From UltimateCore with MIT License | 4 votes |
public ModulePostInitializeEvent(Module module, GamePostInitializationEvent event, Cause cause) { super(module, cause); this.event = event; }
Example #8
Source File: UChat.java From UltimateChat with GNU General Public License v3.0 | 4 votes |
@Listener public void onServerStart(GamePostInitializationEvent event) { try { uchat = this; this.serv = Sponge.getServer(); this.logger = new UCLogger(this.serv); this.config = new UCConfig(this.factory); this.lang = new UCLang(); //set compat perms this.setCompatperms(); logger.info("Init commands module..."); this.cmds = new UCCommands(this); game.getEventManager().registerListeners(plugin, new UCListener()); //init other features // Jedis registerJedis(); //JDA registerJDA(true); logger.info("Init API module..."); this.ucapi = new uChatAPI(); //register placeholdersapi if (Sponge.getPluginManager().getPlugin("placeholderapi").isPresent()) { new UCPlaceHoldersRelational(this); } getLogger().logClear("\n" + "&b _ _ _ _ _ _ _____ _ _ \n" + " | | | | | | (_) | | / ____| | | | \n" + " | | | | | |_ _ _ __ ___ __ _| |_ ___| | | |__ __ _| |_ \n" + " | | | | | __| | '_ ` _ \\ / _` | __/ _ \\ | | '_ \\ / _` | __|\n" + " | |__| | | |_| | | | | | | (_| | || __/ |____| | | | (_| | |_ \n" + " \\____/|_|\\__|_|_| |_| |_|\\__,_|\\__\\___|\\_____|_| |_|\\__,_|\\__|\n" + " \n" + "&a" + plugin.getName() + " " + plugin.getVersion().get() + " enabled!\n"); } catch (Exception e) { e.printStackTrace(); } }
Example #9
Source File: HomeModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #10
Source File: BackModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #11
Source File: SpyModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #12
Source File: FlyModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #13
Source File: PersonalmessageModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #14
Source File: ChatModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #15
Source File: GeoipModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #16
Source File: WeatherModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #17
Source File: WarpModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #18
Source File: RandomModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #19
Source File: DeafModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #20
Source File: VanishModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #21
Source File: BurnModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #22
Source File: CoreModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #23
Source File: SpawnModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #24
Source File: ConnectionmessagesModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #25
Source File: JailModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #26
Source File: DeathmessageModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #27
Source File: SignModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #28
Source File: UnknowncommandModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #29
Source File: TeleportModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }
Example #30
Source File: AfkModule.java From UltimateCore with MIT License | 2 votes |
@Override public void onPostInit(GamePostInitializationEvent event) { }