//Import import me.BukkitPVP.PointsAPI.PointsAPI; // Add Points PointsAPI.addPoints(player, 1000); // Remove Points PointsAPI.removePoints(player, 20); // Get Points int i = PointsAPI.getPoints(player); // Event for changing points @EventHandler(priority = EventPriority.NORMAL) public void onPointsChange(PointsChangeEvent e) { // The player whose points are changed Player p = e.getPlayer(); // New value int points = e.getPoints(); // Cancel event e.setCancelled(true); }
Code with PointsAPI
% of people found this helpful.