FREE >> aCommons | Simple API

Status
This thread has been locked.

Bill

a rare billy boy has appeared
Premium
Feedback score
11
Posts
842
Reactions
336
Resources
0
aCommons
Made by: Reks aka Toblie
(Made for 1.8)

Planned

- Scoreboards
- Nametags
- Chat prefixes
- Chat suffixes
- Tab messages


For Server Owners
This is an API which basically is for developers although I added one command for the beloved server owners.
/spawnmob <mob-name> <player-name>
Mob List:
- Wolf
- Pig
- PigZombie
- Cow
-Blaze
- CaveSpider
- Chicken
- Creeper
- EnderDragon
- Enderman
- Ghast
- Giant
- IronGolem
- MagmaCube
- Ocelot
- Sheep
- Silverfish
- Skeleton
- Slime
- Spider
- Squid
- Villager
- Zombie

For Developers
This api contains simple method with simple usage.
- isPlayerOnline
- sendMsg
- sendTitle
- sendSubtitle
- sendActionBar
- tpAll
- spawnVillager

Example Usage:
isPlayerOnline:
Code:
if (isPlayerOnline(Player p))  {[/SIZE][/CENTER][/SIZE][/COLOR][/FONT][/CENTER]
[SIZE=5][CENTER][FONT=Georgia][COLOR=rgb(44, 44, 44)][SIZE=5]
[CENTER]p.sendMessage("Hello");

}



sendMsg:
Code:
sendMsg(Player p, "&c&lThis is red and bold with &9multi &dcolor!"


sendTitle:
Code:
sendTitle(Player p, "&cTitle&d With &9Colors", 2, 5, 3)

sendSubtitle:
Code:
sendSubtitle(Player p, "Hey, I am &lunderneath&r the title!", 2, 5, 3)

sendActionBar:
Code:
sendActionBar(Player p, "&6This is more &9&lSIMPLE")

tpAll:
int x = loc.getBlockX;
int y = loc.getBlockY;
int z = loc.getBlockZ;

tpAll(Location loc, "&6You just teleported to &9 " + x+ " " + y + " " + z + "&6.")[/CODE]



spawnVillager:
Code:
spawnVillager(Player p, Location loc, World world, "&6&lMy name &dis cool!", true, true, PRIEST)

WARNING:
NONE OF THIS IS TESTED, SO MAY CONTAIN BUGS, POST BUGS IN DISCUSSION SECTION AND I WILL FIX ASAP!

ALL OF THE CODE I WROTE WAS ON THE SPOT AND HAVE NOT BEEN TESTED ASWELL

isPlayerOnline(Player p)

sendMsg(Player p, String msg)

sendTitle(Player player, String msg, int fadeInTime, int showTime, int fadeOutTime)

sendSubtitle(Player player, String msg, int fadeInTime, int showTime, int fadeOutTime)

sendActionBar(Player p, String msg)

tpAll(Location loc, String msg)

spawnVillager(Player p, Location loc, World world, String name, Boolean nameShow, Boolean baby, Profession type)

Note: this is a simple one class API!


DOWNLOAD: Click Here

Feel like buying me a DrPepper?
PayPal mail: [email protected]
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Shortninja

♥ Java Enthusiast ♥
Supreme
Feedback score
2
Posts
1,143
Reactions
734
Resources
0
Looks nice, but I think it would be more useful in the Bukkit or Spigot resources section. Most people here are either looking for plugins.
 
Status
This thread has been locked.
Top