mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
minetest: Restrict max players between 1 and 100
This commit is contained in:
1 file changed
+2
@@ -30,6 +30,8 @@ class MinetestForm(ServiceForm):
|
||||
max_players = forms.IntegerField(
|
||||
label=_('Maximum number of players'),
|
||||
required=True,
|
||||
min_value=1,
|
||||
max_value=100,
|
||||
help_text=_('You can change the maximum number of players playing \
|
||||
minetest at a single instance of time'))
|
||||
|
||||
|
||||
Reference in new issue
Block a user