Search in sources :

Example 1 with SoliniaSpawnGroupUpdatedEvent

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);
}
Also used : ISoliniaSpawnGroup(com.solinia.solinia.Interfaces.ISoliniaSpawnGroup) SoliniaSpawnGroupUpdatedEvent(com.solinia.solinia.Events.SoliniaSpawnGroupUpdatedEvent)

Example 2 with SoliniaSpawnGroupUpdatedEvent

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);
}
Also used : SoliniaSpawnGroupUpdatedEvent(com.solinia.solinia.Events.SoliniaSpawnGroupUpdatedEvent)

Example 3 with SoliniaSpawnGroupUpdatedEvent

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);
}
Also used : SoliniaSpawnGroupUpdatedEvent(com.solinia.solinia.Events.SoliniaSpawnGroupUpdatedEvent)

Example 4 with SoliniaSpawnGroupUpdatedEvent

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);
}
Also used : SoliniaSpawnGroupUpdatedEvent(com.solinia.solinia.Events.SoliniaSpawnGroupUpdatedEvent)

Aggregations

SoliniaSpawnGroupUpdatedEvent (com.solinia.solinia.Events.SoliniaSpawnGroupUpdatedEvent)4 ISoliniaSpawnGroup (com.solinia.solinia.Interfaces.ISoliniaSpawnGroup)1