org.spongepowered.api.event.service.ChangeServiceProviderEvent Java Examples
The following examples show how to use
org.spongepowered.api.event.service.ChangeServiceProviderEvent.
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: NationsPlugin.java From Nations with MIT License | 5 votes |
@Listener public void onChangeServiceProvider(ChangeServiceProviderEvent event) { if (event.getService().equals(EconomyService.class)) { economyService = (EconomyService) event.getNewProviderRegistration().getProvider(); } }
Example #2
Source File: GriefDefenderPlugin.java From GriefDefender with MIT License | 4 votes |
@Listener public void onChangeServiceProvider(ChangeServiceProviderEvent event) { if (event.getNewProvider() instanceof PermissionService && this.validateSpongeVersion()) { ((PermissionService) event.getNewProvider()).registerContextCalculator(new ClaimContextCalculator()); } }
Example #3
Source File: UChat.java From UltimateChat with GNU General Public License v3.0 | 4 votes |
@Listener public void onChangeServiceProvider(ChangeServiceProviderEvent event) { if (event.getService().equals(EconomyService.class)) { econ = (EconomyService) event.getNewProviderRegistration().getProvider(); } }
Example #4
Source File: GriefPreventionPlugin.java From GriefPrevention with MIT License | 4 votes |
@Listener public void onChangeServiceProvider(ChangeServiceProviderEvent event) { if (event.getNewProvider() instanceof PermissionService && this.validateSpongeVersion()) { ((PermissionService) event.getNewProvider()).registerContextCalculator(new ClaimContextCalculator()); } }
Example #5
Source File: RedProtect.java From RedProtect with GNU General Public License v3.0 | 4 votes |
@Listener public void onChangeServiceProvider(ChangeServiceProviderEvent event) { if (event.getService().equals(EconomyService.class)) { economy = (EconomyService) event.getNewProviderRegistration().getProvider(); } }