Skip to content

Commit 8c1fe30

Browse files
parkervcpDaneEveritt
authored andcommitted
Correcting BungeeCord issue (pterodactyl#152)
* Correcting BungeeCord issue
1 parent 6b011fc commit 8c1fe30

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class UpdateMisnamedBungee extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
DB::table('service_variables')->select('env_variable')->where('env_variable', 'BUNGE_VERSION')->update([
17+
'env_variable' => 'BUNGEE_VERSION'
18+
]);
19+
}
20+
21+
/**
22+
* Reverse the migrations.
23+
*
24+
* @return void
25+
*/
26+
public function down()
27+
{
28+
return;
29+
}
30+
}

database/seeds/MinecraftServiceTableSeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private function addBungeecordVariables()
215215
'option_id' => $this->option['bungeecord']->id,
216216
'name' => 'Bungeecord Version',
217217
'description' => 'The version of Bungeecord to download and use.',
218-
'env_variable' => 'BUNGE_VERSION',
218+
'env_variable' => 'BUNGEE_VERSION',
219219
'default_value' => 'latest',
220220
'user_viewable' => 1,
221221
'user_editable' => 1,

0 commit comments

Comments
 (0)