* Implement onSessionLogin trigger for commands.yml Needs test methods, @ljacqu any advice? * Add simple onSessionLogin test
59 lines
1.5 KiB
Java
59 lines
1.5 KiB
Java
package fr.xephi.authme.settings.commandconfig;
|
|
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Command configuration.
|
|
*
|
|
* @see CommandManager
|
|
*/
|
|
public class CommandConfig {
|
|
|
|
private Map<String, Command> onJoin = new LinkedHashMap<>();
|
|
private Map<String, Command> onLogin = new LinkedHashMap<>();
|
|
private Map<String, Command> onSessionLogin = new LinkedHashMap<>();
|
|
private Map<String, Command> onRegister = new LinkedHashMap<>();
|
|
private Map<String, Command> onUnregister = new LinkedHashMap<>();
|
|
|
|
public Map<String, Command> getOnJoin() {
|
|
return onJoin;
|
|
}
|
|
|
|
public void setOnJoin(Map<String, Command> onJoin) {
|
|
this.onJoin = onJoin;
|
|
}
|
|
|
|
public Map<String, Command> getOnLogin() {
|
|
return onLogin;
|
|
}
|
|
|
|
public void setOnLogin(Map<String, Command> onLogin) {
|
|
this.onLogin = onLogin;
|
|
}
|
|
|
|
public Map<String, Command> getOnSessionLogin() {
|
|
return onSessionLogin;
|
|
}
|
|
|
|
public void setOnSessionLogin(Map<String, Command> onSessionLogin) {
|
|
this.onSessionLogin = onSessionLogin;
|
|
}
|
|
|
|
public Map<String, Command> getOnRegister() {
|
|
return onRegister;
|
|
}
|
|
|
|
public void setOnRegister(Map<String, Command> onRegister) {
|
|
this.onRegister = onRegister;
|
|
}
|
|
|
|
public Map<String, Command> getOnUnregister() {
|
|
return onUnregister;
|
|
}
|
|
|
|
public void setOnUnregister(Map<String, Command> onUnregister) {
|
|
this.onUnregister = onUnregister;
|
|
}
|
|
}
|