View on GitHub

EverybodyEditsAPI

Java wrapper for EverybodyEdits

EverybodyEdits Java API

A PlayerIO wrapper for EverybodyEdits made completely using Java to make it easier to control bots, keep track of players, worlds, ETC.

Usage

Connect to a world

private EverybodyEditsAPI everybodyEditsAPI;

try {
    everybodyEditsAPI = new EverybodyEditsAPI("username", "password");
    everybodyEditsAPI.connect("worldID");
} catch(InterruptedException e) {
    e.printStackTrace();
}

Teleport all players and give god

for (Player player : everybodyEditsAPI.getWorld().getPlayerList()) {
    player.teleport(10, 10);
    player.giveGod();
}

Give a specific player a team

Player player = everybodyEditsAPI.getWorld().getPlayerByName("ragequits");

if(player != null)
    player.setTeam(Team.BLUE);

Get world information

World world = everybodyEditsAPI.getWorld();

System.out.println(String.format("Joined world %s, with %s plays, %s favorites and is owned by %s.",
                    world.getName(),
                    world.getPlays(),
                    world.getFavorites(),
                    world.getOwnerUsername()));

Todo

Ignore this part, i just need to keep track of where i am.

Special Thanks