-
Notifications
You must be signed in to change notification settings - Fork 13
API: Board
Mark Hughes edited this page Oct 4, 2017
·
1 revision
You can work with the game board extremely easily with the LegacyFactions API.
Board is actually a database that stores all the chunk claim locations. Using the Board class, you can access and validate claims.
This is the most common use of the Board class.
Faction faction = Board.get().getFactionAt(location);
The next popular use of the Board
class is to work with land claims.
Faction faction = ...;
Locality locality = ...;
Board.setFactionAt(faction, locality);
It is a similar action to remove a faction at a locality:
Locality locality = ...;
Board.removeAt(locality);
You can see all the methods right here on GitHub!
📚 Looking for documentation? You're in the right place. Start with the items on the right of the page.
🐞 Found a bug? Please open a GitHub Issue.
🆘 Need help? Jump on our discord channel - we'll do our best to help 😄
⭐️ If you like LegacyFactions please leave a review and let others know!