Skip to content

Conversation

@shikendon
Copy link
Member

Changes:

  • Added Paper Maven repository to pom.xml
  • Added Paper API dependency alongside Spigot NMS dependency
  • Changed ServerHelper.getTPS() to use Bukkit.getServer().getTPS()[0]

The getTPS() method is part of Paper API, not standard Spigot API. Since the plugin runs on Paper servers (as seen from the error logs), we need to use Paper API to access this method at compile time.

This fixes the compilation error:
cannot find symbol: method getTPS() location: class org.bukkit.Bukkit

Changes:
- Added Paper Maven repository to pom.xml
- Added Paper API dependency alongside Spigot NMS dependency
- Changed ServerHelper.getTPS() to use Bukkit.getServer().getTPS()[0]

The getTPS() method is part of Paper API, not standard Spigot API.
Since the plugin runs on Paper servers (as seen from the error logs),
we need to use Paper API to access this method at compile time.

This fixes the compilation error:
cannot find symbol: method getTPS() location: class org.bukkit.Bukkit
@shikendon shikendon merged commit 8d036eb into main Nov 13, 2025
@shikendon shikendon deleted the claude/fix-tps-field-error-011CV5bK8UMajXL4LvnRf77x branch November 13, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants