planetteamspeak / ts3phpframework

Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
https://www.planetteamspeak.com
GNU General Public License v3.0
211 stars 59 forks source link

new 3.4.0 server #106

Closed qeekus closed 6 years ago

qeekus commented 6 years ago

how to do it "allows setting the nickname of query clients before they become visible on the server"??

Sebbo94BY commented 6 years ago

Hey @qeekus , from the help page:

help use
Usage: use [sid={serverID}] [port={serverPort}] [-virtual] [client_nickname={nickname}]
       use {serverID} [-virtual] [client_nickname={nickname}]

Permissions:
  b_virtualserver_select

Description:
  Selects the virtual server specified with sid or port to allow further
  interaction. The ServerQuery client will appear on the virtual server and
  acts like a real TeamSpeak 3 Client, except it's unable to send or receive
  voice data.
  If your database contains multiple virtual servers using the same UDP port,
  use will select a random virtual server using the specified port.

Example:
  use sid=1
  error id=0 msg=ok

Via the telnet / ssh connection, you can use it like this: use port=9987 client_nickname=qeekus

I'm not sure yet, but I think it's just an addition to clientupdate:

help clientupdate
Usage: clientupdate [client_properties...]

Permissions:

Description:
  Change your ServerQuery clients settings using given properties.
  For detailed information, see Client Properties.

Example:
  clientupdate client_nickname=ScP\s(query)
  error id=0 msg=ok

error id=0 msg=ok

Just a shorter solution. Before, you had to execute clientupdate and afterwards use. Now, you can simply define both in a single use command.

Using the planetteamspeak/ts3phpframework, it should be already automatically done by defining the required option client_name in the URI: serverquery://127.0.0.1:10011/?server_port=9987&client_name=ScP

@ronindesign or @svenpaulsen may know more about it and can confirm or correct my statement. :)

ronindesign commented 6 years ago

Perfect! Thanks for such a helpful and FAST response! 💯