Skip to main content
This page provides complete code examples for common scenarios.

Mob Kill XP Addon

A simple plugin that gives pass XP for mob kills:

Custom Quest Trigger

A minigame plugin supporting ArcPass custom quests:
Quest configuration:

Level Milestone Rewards

Extra rewards for specific levels:

Double XP Event

Modify XP rewards via events:

Best Practices Summary

  1. Always check API availability - Check for null before using API
  2. Use async operations - Don’t block main thread
  3. Handle main thread callbacks - Return to main thread for player interaction
  4. Add error handling - Use .exceptionally() for exceptions
  5. Check null for cached data - getPlayerDataIfCached may return null
  6. Follow event priority - Choose appropriate priority for your use case