mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fixed friend request for offline habbos
This commit is contained in:
parent
d808ccda9c
commit
6a3a7a7963
@ -25,10 +25,6 @@ public class FriendRequestEvent extends MessageHandler {
|
||||
String username = this.packet.readString();
|
||||
Habbo habbo = Emulator.getGameServer().getGameClientManager().getHabbo(username);
|
||||
|
||||
if (habbo.getHabboInfo().getId() == this.client.getHabbo().getHabboInfo().getId()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Emulator.getPluginManager().fireEvent(new UserRequestFriendshipEvent(this.client.getHabbo(), username, habbo)).isCancelled()) {
|
||||
this.client.sendResponse(new FriendRequestErrorComposer(2));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user