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

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


    final TS3Config config = new TS3Config();
    config.setHost("77.77.77.77");
    config.setDebugLevel(Level.ALL);
    config.setLoginCredentials("serveradmin", "serveradminpassword");
   
    final TS3Query query = new TS3Query(config);
    query.connect();
   
    final TS3Api api = query.getApi();
    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");
   
    HashMap<ChannelProperty,String> properties = new HashMap<>();
View Full Code Here


    final TS3Config config = new TS3Config();
    config.setHost("77.77.77.77");
    config.setDebugLevel(Level.ALL);
    config.setLoginCredentials("serveradmin", "serveradminpassword");
   
    final TS3Query query = new TS3Query(config);
    query.connect();
   
    final TS3Api api = query.getApi();
    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");

    api.registerAllEvents();
View Full Code Here

    final TS3Config config = new TS3Config();
    config.setHost("77.77.77.77");
    config.setDebugLevel(Level.ALL);
    config.setLoginCredentials("serveradmin", "serveradminpassword");
   
    final TS3Query query = new TS3Query(config);
    query.connect();
   
    final TS3Api api = query.getApi();
    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");
   
    api.registerAllEvents();
View Full Code Here

    final TS3Config config = new TS3Config();
    config.setHost("77.77.77.77");
    config.setDebugLevel(Level.ALL);
    config.setLoginCredentials("serveradmin", "serveradminpassword");
   
    final TS3Query query = new TS3Query(config);
    query.connect();
   
    final TS3Api api = query.getApi();
    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");

    for (Client c : api.getClients()) {
View Full Code Here

  private List<TS3Listener> listeners = new ArrayList<>();

  public EventManager() {
    map.put("notifytextmessage", new TextMessageEvent());
    map.put("notifycliententerview", new ClientJoinEvent());
    map.put("notifyclientleftview", new ClientLeaveEvent());
    map.put("notifyserveredited", new ServerEditedEvent());
    map.put("notifychanneledited", new ChannelEditedEvent());
    map.put("notifychanneldescriptionchanged",
        new ChannelDescriptionEditedEvent());
    map.put("notifyclientmoved", new ClientMovedEvent());
View Full Code Here

    map.put("notifyclientleftview", new ClientLeaveEvent());
    map.put("notifyserveredited", new ServerEditedEvent());
    map.put("notifychanneledited", new ChannelEditedEvent());
    map.put("notifychanneldescriptionchanged",
        new ChannelDescriptionEditedEvent());
    map.put("notifyclientmoved", new ClientMovedEvent());
  }
View Full Code Here

  public EventManager() {
    map.put("notifytextmessage", new TextMessageEvent());
    map.put("notifycliententerview", new ClientJoinEvent());
    map.put("notifyclientleftview", new ClientLeaveEvent());
    map.put("notifyserveredited", new ServerEditedEvent());
    map.put("notifychanneledited", new ChannelEditedEvent());
    map.put("notifychanneldescriptionchanged",
        new ChannelDescriptionEditedEvent());
    map.put("notifyclientmoved", new ClientMovedEvent());
  }
View Full Code Here

      this.listeners.remove(l);
    }
  }

  public void fireEvent(String notifyName, String notifyBody) {
    TS3EventEmitter emitter = map.get(notifyName);
    if (emitter != null) {
      for (TS3Listener l : listeners) {
        emitter.fire(l, new DefaultArrayResponse(notifyBody).getArray()
            .get(0));
      }
    } else {
      throw new TS3UnknownEventException(notifyName + " " + notifyBody);
    }
View Full Code Here

    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");

    api.registerAllEvents();
    api.addTS3Listeners(new TS3Listener() {

      public void onTextMessage(TextMessageEvent e) {
        System.out.println("Text message received in "
            + e.getTargetMode());
      }
View Full Code Here

    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");
   
    api.registerAllEvents();
    api.addTS3Listeners(new TS3Listener() {
     
      public void onTextMessage(TextMessageEvent e) {
        if(e.getTargetMode()== TextMessageTargetMode.CHANNEL){//Only react to channel messages
          if(e.getMessage().equals("!ping")){
            api.sendChannelMessage("pong");
View Full Code Here

TOP

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

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.