mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-08 23:13:25 -04:00
Mails can now be sent to off-line players
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package services.player;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -87,6 +89,19 @@ public class PlayerManager extends Manager {
|
||||
return null;
|
||||
}
|
||||
|
||||
public long getCharacterIdByName(String name) {
|
||||
try {
|
||||
ResultSet result = loginService.getCharacter(name);
|
||||
if (result.next()) {
|
||||
return result.getLong(0);
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
private Player transitionLoginToZone(final long networkId, final int galaxyId, ClientIdMsg clientId) {
|
||||
final byte [] nToken = clientId.getSessionToken();
|
||||
synchronized (players) {
|
||||
|
||||
Reference in New Issue
Block a user