All contributions

pelican/panel

Pelican Panel

A free game server management panel built on Laravel and Docker, a fork of Pterodactyl.

Language
PHP
GitHub stars
2,435
Merged changes
2
Project site
pelican.dev

What we changed

Updating a plugin no longer crashes or leaves it uninstalled, and removing a server's primary allocation moves it to one of the remaining ones, so the Wings daemon no longer skips the server on boot.

What this work shows

  • Laravel transactions and row locks
  • Data repair migrations
  • JSON serialisation for the Wings daemon
  • Sushi models in Eloquent
What was broken

Updating a plugin crashed

After downloading the new version, updatePlugin() called refreshRows(), which resets the Sushi connection, and then refresh() on the old model instance. An update from the panel or the console died with query() on null and left the plugin uninstalled.

How we fixed it

The record is loaded again

The code loads the plugin again with Plugin::findOrFail(), as the plugin jobs in the project already do, and the API returns the fresh object. A new test of a successful update failed with the same error before the fix.

#2598

What was broken

A server without its primary allocation vanished

The panel let you remove a server's primary allocation, the IP address and port assigned to it, even the last one. The port mappings for the Wings daemon then arrived as an empty list [] instead of an object, so Wings skipped the server on boot and the panel showed it as missing.

How we fixed it

The primary moves to a remaining allocation

A new Server::releaseAllocations() method releases allocations and moves the primary to a remaining one, in one transaction with a row lock. The admin panel, the server panel and the client API all use it, and the last two no longer allow removing the final allocation. A migration repairs servers that pointed at a released allocation.

#2635

Merged changes 2

  1. #2635 Move the primary allocation when it is removed from a server Merged 10 October 2026
  2. #2598 Fix plugin update crashing after the rows are refreshed Merged 25 September 2026

What it taught us

Data logic in a panel has to behave the same in the admin panel, the server panel and the API, so it goes into one transaction with a row lock. Data that is already broken is repaired by a migration.

More about this technology: PHP

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.