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

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


    }
  }

  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

public class CServerGroupDelPerm extends Command {

  public CServerGroupDelPerm(int groupId, String permName) {
    super("servergroupdelperm");
    add(new KeyValueParam("sgid", groupId));
    add(new KeyValueParam("permsid", permName));
  }
View Full Code Here

public class CChannelMove extends Command {

  public CChannelMove(int channelId, int channelParentId, int order) {
    super("channelmove");
    add(new KeyValueParam("cid", channelId));
    add(new KeyValueParam("cpid", channelParentId));
    if (order < 0) {
      order = 0;
    }
    add(new KeyValueParam("order", order));

  }
View Full Code Here

TOP

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

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.