These are chat archives for TheHolyWaffle/TeamSpeak-3-Java-API

6th
Jul 2016
Barofioso
@Barofioso
Jul 06 2016 09:29
hey i didn't found any list of the available permissions (client or channel or group)
which file is it, or do i have to do my own?
Roger Baumgartner
@rogermb
Jul 06 2016 09:42
@Barofioso Heyo :D
Are you talking about a command or just generally about a list of all existing permissions?
Barofioso
@Barofioso
Jul 06 2016 09:42
i talking about the existing permission
because i need to set some channels, that the clients can't join it
Roger Baumgartner
@rogermb
Jul 06 2016 09:43
Well, there is a nicely grouped list in your TS3 client that you could use
Barofioso
@Barofioso
Jul 06 2016 09:43
yeah of course, but i have a bot, and also too much channels XD
so i have to make my own list ?
Roger Baumgartner
@rogermb
Jul 06 2016 09:44
I think I haven't yet really understood what the problem is :stuck_out_tongue:
<-- derp
Barofioso
@Barofioso
Jul 06 2016 09:45
sorry i'm german
ok, my problem is
i have a channel
and a client can join this channel
but i don't want that this client joins this channel
so i need to change the permission, that the client can't join this channel
Roger Baumgartner
@rogermb
Jul 06 2016 09:46
oh, so you want to modify that channel's join power? That would affect all clients without sufficient join power
Or do you want to "block" just that one client from joining that one channel?
Barofioso
@Barofioso
Jul 06 2016 09:46
and ok, i could write the permission static, but i could be better, if we have a nice list
modify
channel(block/ban) i'll add later
Roger Baumgartner
@rogermb
Jul 06 2016 09:49
I'll have to look up how you could do that with the API, give me a moment, please
Barofioso
@Barofioso
Jul 06 2016 09:49
simple a new enum
with all permission
these are strings and the values (i don't know but i think its also string)
Roger Baumgartner
@rogermb
Jul 06 2016 09:51
You could probably do a
addChannelPermission(channelId, "i_channel_needed_join_power", yourValueHere)
on all channels you want to modify.
Barofioso
@Barofioso
Jul 06 2016 09:51
yeah, thats it
Roger Baumgartner
@rogermb
Jul 06 2016 09:51
Phew! :stuck_out_tongue:
I don't know if that command will complain if the permission already exists for that channel, I'll have to test that.
Barofioso
@Barofioso
Jul 06 2016 09:52
i'll do the list and send it later to oyu
i think with that command you can change the permissions of a channel?
Roger Baumgartner
@rogermb
Jul 06 2016 09:53
That's how it's supposed to work, yeah ^^
Barofioso
@Barofioso
Jul 06 2016 09:54
at the documentation it said nothing about an update stmt
so i'll test it
Roger Baumgartner
@rogermb
Jul 06 2016 09:54
Yeah, there isn't one, there's just add and remove. I'm testing right if it updates the value correctly right now ^^
Barofioso
@Barofioso
Jul 06 2016 09:54
but first i have to learn, what an enum is and can
Roger Baumgartner
@rogermb
Jul 06 2016 09:57
Alright, channelpermadd always overwrites the current permission value, as long as the command doesn't fail (due to missing permissions or whatever) :D
Barofioso
@Barofioso
Jul 06 2016 09:57
i have a complex situation now
we have server / channel groups
client and channels
all these use the permissions
and i dont know what i want to say Xd
its ok thx you'd helped me
Roger Baumgartner
@rogermb
Jul 06 2016 09:59
If German would make it easier for you to express yourself, we could always have a private chat
Barofioso
@Barofioso
Jul 06 2016 10:00
how?