Jump to content

onMessage() not firing


ThatGamerBlue

Recommended Posts

2 hours ago, Explv said:

??

What is fr.onMessage?

Where are you declaring the method?

sry, forgot to mention, fr is an instance of the friends api i wrote, this was the easiest way i could think of to pass the message to update its status, declaring the method in the op in the class extending script

2 hours ago, The Undefeated said:

If you wanna log the message you should do this:


	public void onMessage(Message m) {
		log(m.getMessage());
	}

 

i tried this, still nothing gets logged, i think the method isnt even getting called

Edited by ThatGamerBlue
Link to comment
Share on other sites

9 hours ago, ThatGamerBlue said:

sry, forgot to mention, fr is an instance of the friends api i wrote, this was the easiest way i could think of to pass the message to update its status, declaring the method in the op in the class extending script

i tried this, still nothing gets logged, i think the method isnt even getting called

The friends chat has to be included in the normal chat itself, not above the chat. There's an option for that.

Link to comment
Share on other sites

3 hours ago, The Undefeated said:

The friends chat has to be included in the normal chat itself, not above the chat. There's an option for that.

should've been more specific, in the api i'm listening for the message "Unable to add friend - unknown player." that the game sends in the "game" tab, but i found somebody else's api that does what i want using widgets rather than my pixel area clicking

Link to comment
Share on other sites

10 hours ago, ThatGamerBlue said:

should've been more specific, in the api i'm listening for the message "Unable to add friend - unknown player." that the game sends in the "game" tab, but i found somebody else's api that does what i want using widgets rather than my pixel area clicking

fr.log(m.getMessage());

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...