Jump to content

Checking if area contains specific player


Recommended Posts

Posted (edited)

Im trying to do a check if another player is inside an area and return boolean.
More specifically:
 

if ((getInventory().getAmount("item") > int) && (player is in Area))
	Do this

I simply dont understand how to check if an area contains any of a specific list of players other than myself.

Yes i've checked the api.

Edited by Phoenix
Posted
1 hour ago, Phoenix said:

Im trying to do a check if another player is inside an area and return boolean.
More specifically:
 


if ((getInventory().getAmount("item") > int) && (player is in Area))
	Do this

I simply dont understand how to check if an area contains any of a specific list of players other than myself.

Yes i've checked the api.

getPlayers().closest(area, player name);

  • Like 1
  • Boge 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...