Stefan1200's Forum
Home
Help
Search
Login
Register
Login
Register
Stefan1200's Forum
»
English
»
General Discussions
»
if ( User join to (Channel == Selected_Channel) ) { Message to... } | How to?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: if ( User join to (Channel == Selected_Channel) ) { Message to... } | How to? (Read 13854 times)
Maniak
Newbie
Posts: 5
if ( User join to (Channel == Selected_Channel) ) { Message to... } | How to?
«
on:
March 22, 2012, 10:12:34 PM »
Hello, how i can send message to client when he join to selected room using servernotifyregister and notifyclientmoved ?
Logged
Stefan1200
Administrator
Posts: 2244
Re: if ( User join to (Channel == Selected_Channel) ) { Message to... } | How to?
«
Reply #1 on:
March 23, 2012, 02:21:55 PM »
You can register a channel event to get notified about joining or leaving clients. But this will only work for one channel at the time. If you need this for more channels, just track all clients with the clientlist.
Logged
Maniak
Newbie
Posts: 5
Re: if ( User join to (Channel == Selected_Channel) ) { Message to... } | How to?
«
Reply #2 on:
March 27, 2012, 01:48:46 AM »
Can you show me an example?
Logged
Stefan1200
Administrator
Posts: 2244
Re: if ( User join to (Channel == Selected_Channel) ) { Message to... } | How to?
«
Reply #3 on:
March 27, 2012, 08:05:44 AM »
Quote from: Maniak on March 27, 2012, 01:48:46 AM
Can you show me an example?
What do you need? Just the ServerQuery commands?
Logged
Maniak
Newbie
Posts: 5
Re: if ( User join to (Channel == Selected_Channel) ) { Message to... } | How to?
«
Reply #4 on:
March 28, 2012, 01:16:56 AM »
no i need example code in java couse i dont understand how to do this.
where i have to put this:
addEventNotify(EVENT_MODE_CHANNEL, SELECTED_CHANNEL);
and
«
Last Edit: March 28, 2012, 01:20:02 AM by Maniak
»
Logged
Stefan1200
Administrator
Posts: 2244
Re: if ( User join to (Channel == Selected_Channel) ) { Message to... } | How to?
«
Reply #5 on:
March 28, 2012, 02:06:04 PM »
Quote from: Maniak on March 28, 2012, 01:16:56 AM
no i need example code in java couse i dont understand how to do this.
There is already an example, look in the src directory of the JTS3ServerQuery library.
Logged
Stefan1200
Administrator
Posts: 2244
Re: if ( User join to (Channel == Selected_Channel) ) { Message to... } | How to?
«
Reply #6 on:
October 27, 2014, 08:52:28 PM »
Just an update: If you register the channel event for channel id 0, you get all channel events of every channel on that virtual server.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »