use of com.solinia.solinia.Events.SoliniaSpawnGroupUpdatedEvent in project solinia3-core by mixxit.
the class ConfigurationManager method editSpawnGroup.
@Override
public void editSpawnGroup(int spawngroupid, String setting, String value) throws NumberFormatException, InvalidSpawnGroupSettingException, CoreStateInitException, IOException {
ISoliniaSpawnGroup spawnGroup = getSpawnGroup(spawngroupid);
spawnGroup.editSetting(setting, value);
SoliniaSpawnGroupUpdatedEvent soliniaevent = new SoliniaSpawnGroupUpdatedEvent(getSpawnGroup(spawnGroup.getId()));
Bukkit.getPluginManager().callEvent(soliniaevent);
}
use of com.solinia.solinia.Events.SoliniaSpawnGroupUpdatedEvent in project solinia3-core by mixxit.
the class ConfigurationManager method updateSpawnGroupLoc.
@Override
public void updateSpawnGroupLoc(int spawngroupid, Location location) {
if (getSpawnGroup(spawngroupid) == null)
return;
getSpawnGroup(spawngroupid).setLocation(location);
SoliniaSpawnGroupUpdatedEvent soliniaevent = new SoliniaSpawnGroupUpdatedEvent(getSpawnGroup(spawngroupid));
Bukkit.getPluginManager().callEvent(soliniaevent);
}
use of com.solinia.solinia.Events.SoliniaSpawnGroupUpdatedEvent in project solinia3-core by mixxit.
the class ConfigurationManager method addSpawnGroup.
@Override
public void addSpawnGroup(ISoliniaSpawnGroup spawngroup) {
this.spawngroupRepository.add(spawngroup);
SoliniaSpawnGroupUpdatedEvent soliniaevent = new SoliniaSpawnGroupUpdatedEvent(getSpawnGroup(spawngroup.getId()));
Bukkit.getPluginManager().callEvent(soliniaevent);
}
use of com.solinia.solinia.Events.SoliniaSpawnGroupUpdatedEvent in project solinia3-core by mixxit.
the class ConfigurationManager method updateSpawnGroup.
@Override
public void updateSpawnGroup(ISoliniaSpawnGroup spawngroup) {
this.spawngroupRepository.update(spawngroup);
SoliniaSpawnGroupUpdatedEvent soliniaevent = new SoliniaSpawnGroupUpdatedEvent(getSpawnGroup(spawngroup.getId()));
Bukkit.getPluginManager().callEvent(soliniaevent);
}
Aggregations