-Added getPlayer() function
-Added getChunkLoadingNPCs function
-Added getCurrentPlayerCount, getMaxPlayers, and kickAllPlayers, isHardcore, getFile(path), and getServerOwner functions
This commit is contained in:
Luis C.M committed 2022-11-06 01:59:34 -05:00
1 parent e9a8f8cebc
commit 3fd962289c
6 files changed
+78 -18

No files matched your search

@@ -608,9 +608,9 @@ public class ScriptWorld implements IWorld {
return rayCastEntities(new double[] {startPos.getX(), startPos.getY(), startPos.getZ()}, lookVector.normalize(), maxDistance, offset, range, true, false, true);
}
@Deprecated
/**
* @param name The name of the player to be returned
* @return The Player with name. Null is returned when the player isnt found
* Deprecated. Use NpcAPI.Instance().getPlayer(name) instead.
*/
public IPlayer getPlayer(String name){
EntityPlayer player = world.getPlayerEntityByName(name);