Skip to content

Commit 2bbe58e

Browse files
authored
fix: paper server jar input rule (pterodactyl#3494)
Changes Paper egg server jar variable input rule to match the other Minecraft eggs. Matches `a-zA-Z0-9_` and `.jar` at the end instead of hard-coded length value of 20. Fixes pterodactyl#3492
1 parent e1d2a93 commit 2bbe58e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/Seeders/eggs/minecraft/egg-paper.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "PTDL_v1",
55
"update_url": null
66
},
7-
"exported_at": "2021-07-04T19:19:42-04:00",
7+
"exported_at": "2021-07-24T11:38:02+03:00",
88
"name": "Paper",
99
"author": "parker@pterodactyl.io",
1010
"description": "High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies.",
@@ -48,7 +48,7 @@
4848
"default_value": "server.jar",
4949
"user_viewable": true,
5050
"user_editable": true,
51-
"rules": "required|string|max:20"
51+
"rules": "required|regex:\/^([\\w\\d._-]+)(\\.jar)$\/"
5252
},
5353
{
5454
"name": "Download Path",

0 commit comments

Comments
 (0)