Skip to content

Commit 759ebd3

Browse files
committed
Fixes misnamed tag for Sponge servers. closes pterodactyl#237
1 parent 06bdadb commit 759ebd3

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class FixMisnamedOptionTag extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
DB::transaction(function () {
17+
DB::table('service_options')->where([
18+
['name', 'Sponge (SpongeVanilla)'],
19+
['tag', 'spigot'],
20+
['docker_image', 'quay.io/pterodactyl/minecraft:sponge'],
21+
])->update([
22+
'tag' => 'sponge',
23+
]);
24+
});
25+
}
26+
27+
/**
28+
* Reverse the migrations.
29+
*
30+
* @return void
31+
*/
32+
public function down()
33+
{
34+
DB::table('service_options')->where([
35+
['name', 'Sponge (SpongeVanilla)'],
36+
['tag', 'sponge'],
37+
['docker_image', 'quay.io/pterodactyl/minecraft:sponge'],
38+
])->update([
39+
'tag' => 'spigot',
40+
]);
41+
}
42+
}

database/seeds/MinecraftServiceTableSeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private function addCoreOptions()
9090
'parent_service' => $this->service->id,
9191
'name' => 'Sponge (SpongeVanilla)',
9292
'description' => 'SpongeVanilla is the SpongeAPI implementation for Vanilla Minecraft.',
93-
'tag' => 'spigot',
93+
'tag' => 'sponge',
9494
'docker_image' => 'quay.io/pterodactyl/minecraft:sponge',
9595
'executable' => null,
9696
'startup' => null,

0 commit comments

Comments
 (0)