Player API

There are many things which can be done by API. Here are only some Listed:

Basic API Features

Get Job Player:


JobsPlayer jb = UltimateJobs.getPlugin().getPlayerAPI().getRealJobPlayer(player.getUniqueId());

Get Language:


JobsPlayer jb = UltimateJobs.getPlugin().getPlayerAPI().getRealJobPlayer(player.getUniqueId());

language = jb.getLanguage();

Get Current Jobs:


JobsPlayer jb = UltimateJobs.getPlugin().getPlayerAPI().getRealJobPlayer(player.getUniqueId());
 
jobs = jb.getCurrentJobs();

Get Owned Jobs:


JobsPlayer jb = UltimateJobs.getPlugin().getPlayerAPI().getRealJobPlayer(player.getUniqueId());
 
jobs = jb.getOwnJobs();

Get Points:


JobsPlayer jb = UltimateJobs.getPlugin().getPlayerAPI().getRealJobPlayer(player.getUniqueId());
 
jobs = jb.getPoints();

Leave a comment