Add setrnd command (#1846)

* Add setrnd command

* Make rand private

* Add console-like argument behaviour

* Remove unused using declarations

* Add german and english translations

* Improve translation, Add notice to config README, Add check wheather arguments are provided

* Add some comments

* Remove typo

* Add %player% constant to setrnd

* Remove test variable and add comments

* Remove typo

* Reverse changes

* Remove translations
This commit is contained in:
Daenges 2021-12-15 11:51:16 +01:00 committed by GitHub
parent 333358c73b
commit 381b8ea7d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 149 additions and 0 deletions

View file

@ -328,6 +328,11 @@ cmd.send.desc=Sende eine Chatnachricht oder einen Command an den Server.
cmd.set.desc=Setze eine benutzerdefinierte %variable%.
cmd.set.format=Variable muss aus A-Za-z0-9 bestehen.
# SetRnd
cmd.setrnd.desc=Setze eine benutzerdefinierte %variable% zufällig auf einen der angegebenen Werte.
cmd.setrndnum.format=setrnd variable -7to17
cmd.setrndstr.format=setrnd variable string1 "\"string2\" string3"
# Sneak
cmd.sneak.desc=Schaltet Ducken AN/AUS
cmd.sneak.on=Du duckst dich jetzt.

View file

@ -328,6 +328,11 @@ cmd.send.desc=send a chat message or command.
cmd.set.desc=set a custom %variable%.
cmd.set.format=variable name must be A-Za-z0-9.
# SetRnd
cmd.setrnd.desc=set a custom %variable% randomly to a given value.
cmd.setrndnum.format=setrnd variable -7to17
cmd.setrndstr.format=setrnd variable string1 "\"string2\" string3"
# Sneak
cmd.sneak.desc=Toggles sneaking
cmd.sneak.on=You are sneaking now