You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,4 +66,28 @@ echo "Installation finished with no errors."
66
66
67
67
## Other Important Things
68
68
69
-
ATTENTION - If you use an old version of this software, it might ask you for a "product key." This system has been retired, so it may confuse you. Please paste the code `4p6jgtnatqj5svb4` if it asks you for one.
69
+
ATTENTION - If you use an old version of this software, it might ask you for a "product key." This system has been retired, so it may confuse you. Please paste the code `4p6jgtnatqj5svb4` if it asks you for one.
70
+
71
+
## Integrating Third Party Software
72
+
73
+
If you would like to make your application work with CRSS, here is how to do so
74
+
75
+
### Server automatic restarts
76
+
77
+
You can control whether or not CRSS automatically restarts a server by writing a file in the server's root directory named `autorestart`
78
+
79
+
** Requirements **
80
+
- CRSS v1.53 or newer
81
+
- User must set Autorestart Source to allow external file
82
+
83
+
This `autorestart` must contain some certain recognized words, in any case, seperated by a space. Recognized words include:
84
+
-`never` - Never automatically restart the server (May not be used with safe/unsafe) *Optional - if neither safe nor unsafe are provided, this is the default behaviour*
85
+
-`safe` - Automatically restart the server if it exited safely (may not be used with never)
86
+
-`unsafe` - Automatically restart the server if it did not exit safely. (may not be used with never)
87
+
-`disposable` - "Consume" this autorestart file so that it may be only read once. (may not be used with persistent) *Optional - if persistent is not provided, this is the default behaviour*
88
+
-`persistent` - Keep this file (do not delete it when it is read)
89
+
90
+
**For example**
91
+
92
+
`safe persistent` - Autorestart the server if it doesn't crash. This file may be used multiple times.
93
+
`safe unsafe` - Autorestart the server all the time, no matter what.
Copy file name to clipboardExpand all lines: doc/craftserversetup.epdoc
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -79,14 +79,6 @@ The most important keys are the arrow keys and enter. These are used to navigate
79
79
Message boxes are dismissed with the enter key and navigated around with the left and right arrow keys. Message boxes are in a rectangle and do not take up the full screen.
80
80
81
81
In most widgets, all of the key-bindings are layed out for you. The only exception to this is the file dialogues. If you need help with keybinds on the file dialog boxes, simply press H to bring up a list.
82
-
$Using GumRoad
83
-
If you use GumRoad to purchase CraftServerSetup you will recieve a longer product key. Check the section "Product Keys" for more info
84
-
$Product Keys:
85
-
In the OOBE you will be asked to input a product key. You can get a product key by paying the $2 fee and telling Enderbyte Programs that you send it. You will recieve your product key shortly. Product keys remove advertisements and bypass the 1 server limit. Product keys as of 1.30 are 16 characters long. THey have latters and numbers, but are case insensitive. For crack artists looking to crack this program, good luck! Though the hashed keys are publicly available on pastebin, you still need to reverse engineer. 26 letters + 10 numbers = 36 characters. 36 ^ 16 characters divided by 100 keys in system means that you have to generate 1.8*10^48 hashes before you should stumble on a correct one. Trust me, it is not worth it.
86
-
FOR GUMROAD USERS: When asked where you got your key, select "From GumRoad". From there paste in your key.
87
-
Old product keys were 8 numbers and incredibly easy to crack. Not anymore...
88
-
$Advertisements:
89
-
Advertisements are what you recieve if you do not input a product key. In every option menu, there is an advertisement. If you press A, the ad will be opened in your browser. Prior to 0.18.3, you had a 20% chance of encountering an ad while navigating. This was removed because it could be quite annoying
90
82
$Starting a new server:
91
83
To start a new server, simply select Set up a new server, then Create a new server from the main menu. From there, choose a software. As of 1.30, CraftServerSetup supports 4 softwares: Vanilla, Spigot, Paper, and Purpur. For each software, proceed down the list of documentation pages. However, before you do that, you will be asked for a name. A name MUST NOT have any special characters like / or \ because that will damage the file system. Spaces are OK.
"""A module to control the automatic server restart feature for v1.53"""
2
+
importenum
3
+
importos
4
+
importcursesplus
5
+
importuicomponents
6
+
7
+
classAutoRestartSourceOptions(enum.Enum):
8
+
NOAUTORESTART=0#Auto restart will never occur, no matterwhat
9
+
EXTERNALFILE=1#CRSS will search for the SERVERDIR/autorestart file and attempt to follow it. If it cannot find it, it will execute the insturction in the CRSS options
10
+
CRSSONLY=2#CRSS will only honour the setting in the internal configuration (CRSS options)
11
+
12
+
classAutoRestartOptions(enum.Enum):
13
+
NORESTART=0#No auto restart, no matter what
14
+
SAFEEXIT=1#Auto restart only if exit code is 0 (signifying a safe shutdown)
15
+
ALWAYS=2#Auto restart no matter what
16
+
17
+
classExternalAutoRestartProfile:
18
+
"""Store a friendly representation of the auto restart profile stored in a file"""
elifstartsource==AutoRestartSourceOptions.CRSSONLYornotdoes_server_have_autorestart_file(serverdir):#Disregard foreign if startsource is set to or if there is no autorestart file
serverdata["settings"]["autorestart"] =uicomponents.menu(stdscr,["Do not automatically restart","Automatically restart only if the server has not crashed","Always automatically restart the server"],"Select the CRSS-based autorestart mode to use","If you set the source to be external, this setting will be ignored.")
77
+
elifwtd==2:
78
+
serverdata["settings"]["restartsource"] =uicomponents.menu(stdscr,["Do not automatically restart","Pull settings from $DIR/autorestart file, then CRSS.","Pull settings from CRSS only"],"Choose a data source for autorestart")
0 commit comments