Author Topic: Just a general question  (Read 361 times)

Bluscream

  • JTS3ServerMod Internal
  • *****
  • Posts: 17
    • View Profile
    • TeaSpeak
Just a general question
« on: January 20, 2019, 10:20:04 AM »
I always asked myself why JTS3M uses a loop through clientlist instead of event's. Is there a special reason for that?

For example scripts like https://github.com/Bluscream/pyTSon_plugins/blob/master/scripts/quickPerm/__init__.py work just fine because they are faster then JTS3Mod's ServerGroup"Protection"

Stefan1200

  • Administrator
  • *****
  • Posts: 2072
    • View Profile
Re: Just a general question
« Reply #1 on: January 20, 2019, 10:29:06 AM »
Well, never checked the current server version, but some years ago there was no event for the most stuff. Only channel/server joins and leaves and channel changes trigger (or triggered) an event. And of course, chat messages.

Bluscream

  • JTS3ServerMod Internal
  • *****
  • Posts: 17
    • View Profile
    • TeaSpeak
Re: Just a general question
« Reply #2 on: January 20, 2019, 10:46:20 AM »


from the serverquerydocs:

Code: [Select]
Usage: servernotifyregister
       event={server|channel|textserver|textchannel|textprivate}
       [id={channelID}]

Permissions:
  b_virtualserver_notify_register

Description:
  Registers for a specified category of events on a virtual server to receive
  notification messages. Depending on the notifications you've registered for,
  the server will send you a message on every event in the view of your
  ServerQuery client (e.g. clients joining your channel, incoming text
  messages, server configuration changes, etc). The event source is declared by
  the event parameter while id can be used to limit the notifications to a
  specific channel.

Example:
  servernotifyregister event=server
  error id=0 msg=ok

  servernotifyregister event=channel id=123
  error id=0 msg=ok


error id=0 msg=ok

Stefan1200

  • Administrator
  • *****
  • Posts: 2072
    • View Profile
Re: Just a general question
« Reply #3 on: January 20, 2019, 10:48:13 AM »
Ja, das nutze ich ja alles schon. Aber wer gerade aufnimmt, idle ist oder sich away geschaltet hat, wird nicht per Event übertragen. Ca. 50% aller Funktionen arbeiten mit den Events, halt überall, wo es möglich ist.

Bluscream

  • JTS3ServerMod Internal
  • *****
  • Posts: 17
    • View Profile
    • TeaSpeak
Re: Just a general question
« Reply #4 on: January 20, 2019, 11:17:03 AM »
Ah okay, ja hast recht query ist echt nicht ausgelegt auf sowas. Dafür ist das lowlevel protokoll besser.