8000 GitHub - NotNV6/JedisAPI: A Jedis API mainly made for Bukkit plugins (can also be used for other things)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NotNV6/JedisAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JedisAPI

A Jedis API mainly made for Bukkit plugins (can also be used for other things)

Examples

Setup the RedisHandler:

RedisHandler handler = new RedisHandler("localhost" /*ip*/, "" /*password*/, 27017 /*port*/);
handler.connect();

Send a packet:

handler.sendPacket(packet);

Make a packet (example with lombok in code):

public class ExamplePacket extends Packet {

public String string;

public ExamplePacket(String string) {
    this.string = string;
}

@Override
public void onReceive() {
  System.out.println("Received ExamplePacket with data: " + string);
}

@Override
public void onSend() {

}

A more in-depth example can be found in rip/skyland/redis/example

About

A Jedis API mainly made for Bukkit plugins (can also be used for other things)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0