diff --git a/public/themes/pterodactyl/js/plugins/minecraft/eula.js b/public/themes/pterodactyl/js/plugins/minecraft/eula.js index 42b42a800..fb2f4807e 100644 --- a/public/themes/pterodactyl/js/plugins/minecraft/eula.js +++ b/public/themes/pterodactyl/js/plugins/minecraft/eula.js @@ -19,6 +19,10 @@ // SOFTWARE. $(document).ready(function () { Socket.on('console', function (data) { + if (typeof data === 'undefined' || typeof data.line === 'undefined') { + return; + } + if (~data.line.indexOf('You need to agree to the EULA in order to run the server')) { swal({ title: 'EULA Acceptance',