From fa3755341efcfde4b18f7e6313fb304bf2aa8ede Mon Sep 17 00:00:00 2001 From: skeletor Date: Sun, 2 Feb 2020 04:06:44 -0500 Subject: [PATCH] set client to game mode when in a game --- src/main/java/com/eu/habbo/habbohotel/games/Game.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/games/Game.java b/src/main/java/com/eu/habbo/habbohotel/games/Game.java index 359792d8..943734eb 100644 --- a/src/main/java/com/eu/habbo/habbohotel/games/Game.java +++ b/src/main/java/com/eu/habbo/habbohotel/games/Game.java @@ -12,6 +12,7 @@ import com.eu.habbo.habbohotel.rooms.Room; import com.eu.habbo.habbohotel.users.Habbo; import com.eu.habbo.habbohotel.users.HabboItem; import com.eu.habbo.habbohotel.wired.WiredHandler; +import com.eu.habbo.messages.outgoing.guides.GuideSessionPartnerIsPlayingComposer; import com.eu.habbo.plugin.Event; import com.eu.habbo.plugin.events.games.GameHabboJoinEvent; import com.eu.habbo.plugin.events.games.GameHabboLeaveEvent; @@ -68,7 +69,7 @@ public abstract class Game implements Runnable { habbo.getHabboInfo().setCurrentGame(this.getClass()); habbo.getHabboInfo().setGamePlayer(player); } - + habbo.getClient().sendResponse(new GuideSessionPartnerIsPlayingComposer(true)); return true; } } catch (Exception e) { @@ -94,7 +95,7 @@ public abstract class Game implements Runnable { habbo.getHabboInfo().getGamePlayer().reset(); habbo.getHabboInfo().setCurrentGame(null); habbo.getHabboInfo().setGamePlayer(null); - + habbo.getClient().sendResponse(new GuideSessionPartnerIsPlayingComposer(false)); if (this.countsAchievements && this.endTime > this.startTime) { AchievementManager.progressAchievement(habbo, Emulator.getGameEnvironment().getAchievementManager().getAchievement("GamePlayed")); }