mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
Fix visitor bot not including room owner anymore
This commit is contained in:
parent
b598425979
commit
2f51d32511
@ -56,7 +56,7 @@ public class VisitorBot extends Bot {
|
|||||||
public void onUserEnter(Habbo habbo) {
|
public void onUserEnter(Habbo habbo) {
|
||||||
if (!this.showedLog) {
|
if (!this.showedLog) {
|
||||||
if (habbo.getHabboInfo().getCurrentRoom() != null) {
|
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()) {
|
if (this.visits.isEmpty()) {
|
||||||
this.talk(Emulator.getTexts().getValue("bots.visitor.no_visits"));
|
this.talk(Emulator.getTexts().getValue("bots.visitor.no_visits"));
|
||||||
|
Loading…
Reference in New Issue
Block a user