mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Merge branch 'visitor-bot-fix' into 'dev'
Fix visitor bot not including room owner anymore See merge request morningstar/Arcturus-Community!249
This commit is contained in:
commit
a14ff42fe6
@ -56,7 +56,7 @@ public class VisitorBot extends Bot {
|
||||
public void onUserEnter(Habbo habbo) {
|
||||
if (!this.showedLog) {
|
||||
if (habbo.getHabboInfo().getCurrentRoom() != null) {
|
||||
this.visits = Emulator.getGameEnvironment().getModToolManager().getVisitsForRoom(habbo.getHabboInfo().getCurrentRoom(), 10, true, habbo.getHabboInfo().getLastOnline(), Emulator.getIntUnixTimestamp());
|
||||
this.visits = Emulator.getGameEnvironment().getModToolManager().getVisitsForRoom(habbo.getHabboInfo().getCurrentRoom(), 10, true, habbo.getHabboInfo().getLastOnline(), Emulator.getIntUnixTimestamp(), habbo.getHabboInfo().getCurrentRoom().getOwnerName());
|
||||
|
||||
if (this.visits.isEmpty()) {
|
||||
this.talk(Emulator.getTexts().getValue("bots.visitor.no_visits"));
|
||||
|
Loading…
Reference in New Issue
Block a user