BasicsAPI

178 Downloads

Codes:

Broadcast Messages:

BasicsAPI.Broadcast(message);

 Reset a players inventory:

BasicsAPI.resetInv(p);

 Clear the chat for a player:

BasicsAPI.clearChat(p);

 Clear the chat globally:

BasicsAPI.clearGlobalChat();

 When someone types not enough arguments then send him the right command:

BasicsAPI.wrongSyntax(p, rightcmd);

 Heal a player:

BasicsAPI.heal(p);

 Check if a player is in nether or end:

BasicsAPI.isInNether(p); | BasicsAPI.isInEnd(p);

Both return a boolean.

Message a player:

BasicsAPI.msgHim(p, msg);

Get a players live:

BasicsAPI.getLive(p);                                               It works best with BasicsAPI.showHealth(p, healthfrom);

Sends a player the live of the target:

BasicsAPI.showHealth(p, healthfrom);

Opens a players enderchest:

BasicsAPI.openEnderChest(p, target);

Switch gamemode:

BasicsAPI.setSurvival(p);   BasicsAPI.setAdventure(p);   BasicsAPI.setCreative(p);   BasicsAPI.setSpectator(p);

Open a players inventory:

BasicsAPI.seeInventory(p, target);

Resets a nick:

BasicsAPI.resetNick(p);

Sets a nick:

BasicsAPI.setNick(p, newNick);

Gives a player a players head:

BasicsAPI.giveSkull(p, skullowner);

Vanish a player:

BasicsAPI.vanishPlayer(p);

Unvanish a player:

BasicsAPI.unvanishPlayer(p);

Set sun:

BasicsAPI.setSun();

Set rain:

BasicsAPI.setRain();

Set thundering:

BasicsAPI.setThunder();

Opens a mobile workbench:

BasicsAPI.openWorkbench(player);

Teleport players:

BasicsAPI.teleport(player, target);

Force a user to perform a command:

BasicsAPI.sudo(victom, command);

This is the API version of my plugin "Basics".