minetest: Restrict max players between 1 and 100

This commit is contained in:
James Valleroy 2016-12-23 10:46:15 -05:00
parent 533118c7f5
commit 2adb14e838
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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'))