#729 Refactor spawn handling into separate service (work in progress)

This commit is contained in:
ljacqu
2016-06-12 12:46:03 +02:00
parent f0e42b61c5
commit 68d5145cd7
12 changed files with 663 additions and 232 deletions
@@ -9,8 +9,6 @@ import fr.xephi.authme.settings.domain.Property;
import fr.xephi.authme.util.ValidationService;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.plugin.PluginManager;
import javax.inject.Inject;
@@ -25,9 +23,6 @@ public class ProcessService {
@Inject
private Messages messages;
@Inject
private PluginManager pluginManager;
@Inject
private ValidationService validationService;
@@ -95,15 +90,6 @@ public class ProcessService {
return messages.retrieveSingle(key);
}
/**
* Emit an event.
*
* @param event the event to emit
*/
public void callEvent(Event event) {
pluginManager.callEvent(event);
}
public boolean validateEmail(String email) {
return validationService.validateEmail(email);
}