Skip to content

Ptero support#289

Open
Zoriot wants to merge 3 commits into
Osiris-Team:masterfrom
Zoriot:ptero-support
Open

Ptero support#289
Zoriot wants to merge 3 commits into
Osiris-Team:masterfrom
Zoriot:ptero-support

Conversation

@Zoriot

@Zoriot Zoriot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor
  • Makes Self Updater work fine with Ptero Setups
  • Disable Java update on Ptero
  • Download validation was improved because else it failed because of that
  • New self-updater.safe-mode config option, if disabled it skips the special handling.

Closes #287.

Ptero detection could be improved. Was just generated by GitHub Copilot and worked fine.

Comment thread src/main/java/com/osiris/autoplug/client/configs/UpdaterConfig.java
Was requested in the pull request, so you can skip the special handling.
@Zoriot
Zoriot requested a review from Osiris-Team July 16, 2026 12:51
"AutoPlug is able to update itself automatically.",
"Its strongly recommended to have this feature enabled,",
"to benefit from new features, bug fixes and security enhancements.",
"Pterodactyl-managed servers disable this at runtime to avoid restart loops.",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this comment since the self-updater gets disabled automatically for ptero users.

Comment on lines +130 to +132
self_updater_safe_mode = put(name, "self-updater", "safe-mode").setDefValues("true").setComments(
"If AutoPlug is disabled, it will update itself without advanced compatibility. Self-updating on Ptero will work in the same way as it does when not on Ptero.",
"Its strongly recommended to have this feature enabled on non AutoPlug specific eggs,"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about something easier to read and understand: "If you are running AutoPlug via Pterodactyl Panel, the self-updater is disabled to avoid crashes. Set to false to force the self-updater to run anyways."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is extremly misleading. My Code have a specific path for Ptero which does update itself.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zoriot my bad I thought you disabled the self-updater with that change, not the java updater.

Thus please add the safe-mode to the java-updater not the self-updater.

Cool that the self-updater now works on petero by simply replacing the running jar haha. Where you able to test that this works?

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.

Self Updater doesn't work on Ptero Server

2 participants