Package com.github.theholywaffle.teamspeak3.api.wrapper

Examples of com.github.theholywaffle.teamspeak3.api.wrapper.Permission


  public List<Permission> getClientPermissions(int clientDBId) {
    CClientPermList list = new CClientPermList(clientDBId);
    if (query.doCommand(list)) {
      List<Permission> permissions = new ArrayList<>();
      for (HashMap<String, String> opt : list.getResponse()) {
        permissions.add(new Permission(opt));
      }
      return permissions;
    }
    return null;
  }
View Full Code Here


  public List<Permission> getServerGroupPermissions(int id) {
    CServerGroupPermList list = new CServerGroupPermList(id);
    if (query.doCommand(list)) {
      List<Permission> p = new ArrayList<>();
      for (HashMap<String, String> opt : list.getResponse()) {
        p.add(new Permission(opt));
      }
      return p;
    }
    return null;
  }
View Full Code Here

    }
  }

  public void run() {
    while (ts3.getSocket()!= null &&ts3.getSocket().isConnected() && ts3.getOut() != null && !stop) {
      Command c = ts3.getCommandList().peek();
      if (c != null && !c.isSent()) {
        String msg = c.toString();
        TS3Query.log.info("> " + msg);
        ts3.getOut().println(msg);
        lastCommand = System.currentTimeMillis();
        c.setSent();
      }
      try {
        Thread.sleep(floodRate);
      } catch (InterruptedException e) {
        e.printStackTrace();
View Full Code Here

public class CClientKick extends Command {

  public CClientKick( ReasonIdentifier reason, String reasonMessage,int... clientIds) {
    super("clientkick");
    ArrayParameter p = new ArrayParameter();
    for(int id : clientIds){
      p.add(new KeyValueParam("clid",id+""));
    }
    add(p);
    add(new KeyValueParam("reasonid",reason.getIndex()+""));
    if(reasonMessage != null){
      add(new KeyValueParam("reasonmsg",reasonMessage));
View Full Code Here

public class CChannelDelete extends Command {

  public CChannelDelete(int channelId, boolean forced) {
    super("channeldelete");
    add(new KeyValueParam("cid", channelId));
    add(new KeyValueParam("force", forced ? "1" : "0"));
  }
View Full Code Here

public class CServerEdit extends Command{

  public CServerEdit(HashMap<VirtualServerProperty, String> map) {
    super("serveredit");
    for (VirtualServerProperty p : map.keySet()) {
      add(new KeyValueParam(p.getName(), map.get(p)));
    }
  }
View Full Code Here

public class CChannelClientAddPerm extends Command{

  public CChannelClientAddPerm(int channelId, int clientDBId, String permName, int permValue) {
    super("channelclientaddperm");
    add(new KeyValueParam("cid",channelId));
    add(new KeyValueParam("cldbid",clientDBId));
    add(new KeyValueParam("permsid",permName));
    add(new KeyValueParam("permvalue",permValue));
  }
View Full Code Here

public class CMessageGet extends Command {

  public CMessageGet(int messageId) {
    super("messageget");
    add(new KeyValueParam("msgid",messageId+""));
  }
View Full Code Here

public class CBanDel extends Command{

  public CBanDel(int banId) {
    super("bandel");
    add(new KeyValueParam("banid",banId));
  }
View Full Code Here

public class CChannelInfo extends Command {

  public CChannelInfo(int channelId) {
    super("channelinfo");
    add(new KeyValueParam("cid", channelId));
  }
View Full Code Here

TOP

Related Classes of com.github.theholywaffle.teamspeak3.api.wrapper.Permission

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.