All Projects → TheHolyWaffle → Teamspeak 3 Java Api

TheHolyWaffle / Teamspeak 3 Java Api

Licence: mit
A Java wrapper of TeamSpeak's 3 server query API.

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Teamspeak 3 Java Api

sign-maven-plugin
Maven plugin which creates Open PGP / GPG signatures for all of the project's artifacts
Stars: ✭ 34 (-87.55%)
Mutual labels:  maven
rpm-builder
Maven RPM builder plugin
Stars: ✭ 46 (-83.15%)
Mutual labels:  maven
jcabi-maven-plugin
Supplementary maven plugin for AspectJ weaving and versioning of artifacts
Stars: ✭ 25 (-90.84%)
Mutual labels:  maven
Simple-YAML
A Java API that provides an easy-to-use way to store data using the YAML format.
Stars: ✭ 68 (-75.09%)
Mutual labels:  maven
flexmojos-introduction
A gentle introduction to Flexmojos & Maven
Stars: ✭ 50 (-81.68%)
Mutual labels:  maven
WAPI
The WhatsApp API
Stars: ✭ 36 (-86.81%)
Mutual labels:  maven
broom
A disk cleaning utility for developers.
Stars: ✭ 38 (-86.08%)
Mutual labels:  maven
Blog Tutorials
⭐️ Codebase for the tutorials on my blog about Java, Spring Boot, AWS, Kotlin and Testing
Stars: ✭ 257 (-5.86%)
Mutual labels:  maven
wislove
Java 服务端api解决方案,处理部分通用业务逻辑。包括用户中心,支付,订单,IM相关,内容管理,角色权限授权。以及分库分表的处理,RPC分布式的解决方案等。一个人慢慢做
Stars: ✭ 14 (-94.87%)
Mutual labels:  maven
haveibeenpwned4j
The ultimate Java library for Troy Hunt's ';-- Have I Been Pwned (v3).
Stars: ✭ 13 (-95.24%)
Mutual labels:  maven
tank-battle
Java坦克大战游戏,基于Spring Boot,JDK8,Swing组件开发,有一些Bug,还在持续更新完善中...
Stars: ✭ 52 (-80.95%)
Mutual labels:  maven
WebChat
一份关于webSocket网页聊天的小demo
Stars: ✭ 54 (-80.22%)
Mutual labels:  maven
common
常用的模式、方法、算法。Common patterns and methods.
Stars: ✭ 59 (-78.39%)
Mutual labels:  maven
wordcount
Hadoop MapReduce word counting with Java
Stars: ✭ 18 (-93.41%)
Mutual labels:  maven
alovoa
Free and open-source dating platform that respects your privacy
Stars: ✭ 104 (-61.9%)
Mutual labels:  maven
E3Mall
高并发,分布式Java项目,模拟天猫商城,京东商城
Stars: ✭ 33 (-87.91%)
Mutual labels:  maven
cmake-maven-project
Project to enable using CMake from a Maven build.
Stars: ✭ 57 (-79.12%)
Mutual labels:  maven
Ueboot
springboot2.2、spring-data-jpa、iView4、Vue2 、代码生成器、shiro权限管理、前后端分离、java后台管理系统快速开发框架,通过该框架可以在分钟级别内完成单表的前后端增删改查功能。脚手架工程: https://github.com/ueboot/ueboot-starter ,基于这个工程可以直接开发
Stars: ✭ 270 (-1.1%)
Mutual labels:  maven
docker-compose-maven-plugin
Run docker-compose with Maven
Stars: ✭ 68 (-75.09%)
Mutual labels:  maven
SSM-Maven-Heima
基于SSM(Spring+Springmvc+Mybatis)框架的电商小项目,使用Maven构建项目,MySQL为数据库系统,Redis的缓存服务器(并不是用的很多)。商城分为后台人员管理界面和前台处理服务器两个方面。实现了登录,邮件注册,redis缓存机制,cookie的历史记录浏览,分页浏览商品,加入购物车,提交订单等等功能。最精彩的是,如果你刚刚学完基础的SSM框架,那么你就可以跟着视频一起完成这个很nice的小工程了。话不多说,让我们进入无尽的学习中吧!(光头不再是梦想:) )
Stars: ✭ 106 (-61.17%)
Mutual labels:  maven

TeamSpeak 3 Java API

Build Status Maven Central Javadocs Gitter

A Java wrapper of the TeamSpeak 3 Server Query API

Features

  • Contains almost all server query functionality! (see TeamSpeak 3 Server Query Manual)
  • Built-in keep alive method
  • Threaded event-based system
  • Both synchronous and asynchronous implementations available
  • Can be set up to reconnect and automatically resume execution after a connection problem
  • Utilizes SLF4J for logging abstraction and integrates with your logging configuration

Getting Started

Download

  • Option 1 (Standalone Jar):

    Download the latest release and add this jar to the buildpath of your project.

  • Option 2 (Maven):

    Add the following to your pom.xml:

    <dependency>
        <groupId>com.github.theholywaffle</groupId>
        <artifactId>teamspeak3-api</artifactId>
        <version>...</version>
    </dependency>
    

    This API utilizes SLF4J for logging purposes and doesn't come shipped with a default logging implementation, if you use Maven instead of the standalone jar. You will manually have to add one via Maven to get any logging going, if you don't have one already.

    The easiest way to do so is to just add SimpleLogger to your project, which also supports configuration via config file (needs to be shipped as a resource with your jar), if you want to log DEBUG messages for instance (e.g. raw client-server communication).

    See this configuration example for SimpleLogger. Add the following to your pom.xml to get started:

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.7.25</version>
    </dependency>
    

    You can however choose whichever logging framework suits your needs best. Just add your logging framework and the corresponding binding to your pom.xml.

Usage

All functionality is contained in the TS3Api object.

  1. Create a TS3Config object and customize it.
  2. Create a TS3Query object with your TS3Config as argument.
  3. Call TS3Query#connect() to connect to the server.
  4. Call TS3Query#getApi() to get an TS3Api object.
  5. Do whatever you want with this api :)

Example

final TS3Config config = new TS3Config();
config.setHost("77.77.77.77");

final TS3Query query = new TS3Query(config);
query.connect();

final TS3Api api = query.getApi();
api.login("serveradmin", "serveradminpassword");
api.selectVirtualServerById(1);
api.setNickname("PutPutBot");
api.sendChannelMessage("PutPutBot is online!");
...

More examples

here

Extra notes

FloodRate

Only use FloodRate.UNLIMITED if you are sure that your query account is whitelisted (query_ip_whitelist.txt in Teamspeak server folder). If not, use FloodRate.DEFAULT. The server will temporarily ban your account if you send too many commands in a short period of time. For more info on this, check the TeamSpeak 3 Server Query Manual, page 6.

TS3Config Settings

Option Description Method signature Default value Required
Host/IP IP/Host of TeamSpeak 3 server. setHost(String) yes
QueryPort Query port of TeamSpeak 3 server. setQueryPort(int) 10011 no
FloodRate Prevents possible spam to the server. setFloodRate(FloodRate) FloodRate.DEFAULT no
Communications logging Log client-server communication. setEnableCommunicationsLogging(boolean) false no
Command timeout Time until a command waiting for a response fails setCommandTimeout(int) 4000 (ms) no

Questions or bugs?

Please let us know here. We'll try to help you as soon as we can.

If you just have a simple question or want to talk to us about something else, please join the repository chat on Gitter.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].