├── .gitignore
├── .vuepress
└── config.js
├── LICENSE
├── README.md
└── guide
├── README.md
├── n2.md
├── n3.md
├── n4.md
└── nx.md
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .vuepress/dist
3 | .vuepress/dist/*
4 | node_modules/*
5 | */.DS_Store
6 | **/.DS_Store
7 | .DS_Store
8 | package-lock.json
9 |
--------------------------------------------------------------------------------
/.vuepress/config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | title: 'Minecraft-Server-Starting-Guide',
3 | base: '/',
4 | head: [],
5 | plugins: [],
6 | themeConfig: {
7 | sidebar: [],
8 | sidebarDepth: 2,
9 | lastUpdated: 'Last Updated',
10 | nav: [
11 | { text: '主页', link: '/' },
12 | { text: '教程', link: '/guide/' },
13 | { text: 'GitHub', link: 'https://github.com/shaokeyibb/Minecraft-Server-Starting-Guide' },
14 | ],
15 | smoothScroll: true
16 | },
17 | plugins: {
18 | "vuepress-plugin-auto-sidebar": {
19 | titleMode: "titlecase",
20 | },
21 | },
22 | markdown: {
23 | plugins: [
24 | "footnote",
25 | "sup",
26 | "sub"
27 | ]
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 前言
2 |
3 | 之所以想写这一篇一条龙教程,实在是因为国人开服,功利心很重,不需要过程,只需要结果。有的人开服,喜欢网上抓一个整合包就开起来,自己不会改,但是只要能得到「结果」就好了。在这个大环境下,国内服务器圈弥漫着一股粗制滥造和模板化的问题。而真正想从零开始的小白服主,又很难找到一个精准,完全的开服教程,往往要东拼西凑,获得经验。
4 |
5 |
6 | 本文的初衷是一条龙服务,为希望认真学习开服技术的小白服主们提供全面的服务。通过循序渐进的方式,通过夹杂着故事的技术讲解,为小白服主们揭开服务端的神秘面纱。
7 |
8 |
9 | 本文为本人耗时多天完成,难免有一定纰漏,如有技术上或语言上的问题欢迎指正。同时,本文还会持续更新,如果您有什么不理解的开服问题需要详细了解,也欢迎回复告诉我您的想法。
10 |
11 | **本文的贡献者:**
12 | - [贺兰星辰](https://www.mcbbs.net/home.php?mod=space&uid=495221)(主要编写者)
13 | - [TheZihanGu](https://github.com/TheZihanGu)
14 | - [Subilan](https://github.com/Subilan)
15 | - [iceBear67](https://github.com/iceBear67)
16 | - [晓夜](https://github.com/LDS-XiaoYe)
17 | - 以及所有对本文提出过宝贵意见的人
18 |
19 | 请 **务必** 注意查看标注的每一个注释,他们都非常有用。
20 |
21 | #### 阅读前,请先了解以下事项:
22 |
23 | - 本文 **不** 适用于非 Java 版
24 |
25 | - 本文 **不** 讨论代理服务端
26 |
27 | - 本文 **不** 讨论如何进行端口映射,端口转发等工作
28 |
29 | - 本文所有操作均视为您的操作系统环境已显示文件拓展名。且重命名文件时均包含拓展名
30 |
31 | - 如无特殊说明,本文均采用 [CC BY-NC 3.0 中国大陆](https://creativecommons.org/licenses/by-nc/3.0/cn/) 协议授权
32 |
33 | 如果您已经准备好了,请 [点此开始](https://guide.minecraft.kim/guide)。
34 |
--------------------------------------------------------------------------------
/guide/README.md:
--------------------------------------------------------------------------------
1 | # 一、服务端核心介绍
2 |
3 | **服务端核心**(简称核心,有时也被叫做服务端)是指开服时用于直接或间接启动Minecraft服务器的一类文件,文件名一般以`.jar`结尾。
4 | 一般情况下,我们使用 `CMD/PowerShell` (可执行文件名以.bat为结尾)或是 `*nix Shell` (可执行文件名以.sh为结尾)运行这样的程序以启动服务器。
5 |
6 | ## 为什么要说「直接或间接」
7 |
8 | 一般情况下,一个服务器的大部分运行代码都存在那一个小小的罐子(指`核心`)里,且这些核心通常直接修改Minecraft的代码来分发。
9 | 但是某些服务端核心里,用于运行服务器核心代码完全不在这个文件里,为什么呢?
10 | 这是因为 [Mojang 的最终用户许可协议 (EULA)](https://account.mojang.com/documents/minecraft_eula)规定,未经授权的任何人都**不能二次分发 Minecraft 二进制文件**,以及作为 End User 的我们**您不得分发我们的游戏或软件的任何 Mod 化版本**(摘自Mojang Eula)
11 |
12 | > 或许有读者会好奇: `那么,如果我就是这样干了,又怎么样?`
13 | > 那么你应该看看`CraftBukkit`的下场。
14 | > CraftBukkit 服务端因为本体直接包含 Minecraft 代码,违反了 Mojang EULA 和千禧年数字版权法 (DMCA),面临被起诉的风险,最终被迫停止开发。
15 |
16 | 有趣的是,仍然会有「直接」启动的核心存在。像是 Spigot,Paper..那么他们为什么没有被起诉?
17 |
18 |
19 | ## BuildTools
20 |
21 | 他们(大部分)不提供带有Minecraft代码的文件,而是提供了 `BuildTools`(构建方法)。通过 BuildTools,我们可以在自己的计算机上合成`可直接运行的服务端核心`,以此绕过了Mojang EULA和DMCA的规定(他们管直接分发但是不管间接)
22 |
23 | > 注意: 即使如此,BuildTools 并不是「间接启动核心」,他只是让发布者间接发布了可以直接启动的核心
24 |
25 | ## 「间接启动」核心
26 |
27 | 但是 BuildTools 的过程通常非常慢,它还需要很多乱七八糟的东西..因此有些核心放弃 BuildTools,用了其他方法。
28 |
29 | ### PaperClip
30 |
31 | PaperMC(一种服务端核心的团队) 会把每一次的更新制作成一个个补丁文件的形式。
32 |
33 | 用户下载到的文件将会是一个补丁安装器,该核心安装器*从 Mojang 下载未经过修改的 Minecraft* 后,现场给你打补丁。
34 |
35 | ~~paperclip: (人家本质也是 BuildTools 啦..)~~
36 |
37 | ## 什么是 CMD,什么又是 *nix Shell?为什么我们不能直接双击 jar 运行服务端核心?
38 |
39 | TL;DR
40 |
41 | 你当然可以这样启动服务器,但是你没法设置 Java 进程参数。
42 |
43 | ### CMD 是什么?
44 |
45 | CMD/Command,本教程中泛指`Microsoft Windows`的`命令提示符`。
46 |
47 | > 如果你是 Windows 用户,按下 Win+R,输入`cmd`后回车,弹出的窗口就是 CMD
48 |
49 | 在 CMD 中,你可以运行程序,设定命令行参数。
50 |
51 | ### *nix Shell 是什么?
52 |
53 | *nix 是`unix-like`的意思。包含了基于`Linux`,`Unix`内核开发的发行版(「macos 基于 unix 哦」)
54 |
55 | Shell 起到和 Windows 中命令提示符的作用,他可以启动程序,设定命令行参数。
56 |
57 | ...
58 |
59 | 启动一个Minecraft服务端需要若干参数限制运行条件,因此我们需要使用这些特殊的程序来修改参数。
60 |
61 | 要注意的是,不只是通过命令行添加参数,某些「开服器」也可以,后面将会提到。
62 |
63 | ## 主流服务端核心列表
64 |
65 | 那么说完上面的,那么现在究竟有哪些核心,他们有什么区别呢?
66 | 注意: 为了方便查阅,我们将会用**粗体**表示推荐使用的服务端核心,使用*斜体*表示另类,冷门,不推荐使用的服务端核心。
67 | 注意:此处我们只会介绍目前还在积极更新的,或是有一定历史意义的服务端核心,对于刚出生就夭寿的,无意义的服务端,此处不多赘述
68 |
69 | 你需要知道的东西:
70 |
71 | - API —— 应用开发接口,作为初学者你可以把它看作平台/规范
72 |
73 |
74 |
75 | 1. Vanilla
76 |
77 |
78 | 对于 Java 版来说,绝大多数服务端的始祖便是 Mojang 提供的官方服务端了,按照习惯,我们把官服叫做 Vanilla(香草,代指纯净[纯净服务端有歧义])
79 |
80 | 其实他本身的名字应该是 Minecraft_Server(但是大多数情况下我们不会用这个名字)
81 |
82 | Vanilla 有以下的属性
83 |
84 | - 不支持除了原生 Minecraft 外的任何特性内容
85 | - Mojang 官方支持
86 | - 自带原生 GUI 控制台窗口
87 | - 相对比其他服务端来说,性能较差
88 |
89 |
90 | 根据以上属性,我们可以发现 Vanilla 基本上啥都干不了,就是原生兼容好,因此比较适合开**原版的服务器**(比如**玩玩命令方块小游戏地图啊,基友联机啊**之类的)
91 |
92 |
93 | 下载 Vanilla:
94 |
95 | 1. 前往正版启动器手动选择版本下载
96 | 2. 前往第三方下载站下载(如GetBukkit:https://getbukkit.org/download/vanilla)
97 |
98 | 2. CraftBukkit(有时被称为 Bukkit[10])
99 |
100 |
101 | 仅用 Vanilla 我们无法快速,高效地通过编程拓展游戏内容。因此,CraftBukkit 诞生。
102 | CraftBukkit 是一个实现了 BukkitAPI 的服务端,这意味着开发者们可以通过 BukkitAPI 提供的(有限的)内容来拓展服务器逻辑,增强趣味性。
103 |
104 | 社区开发者们发布`Bukkit插件`,多数情况下我们只需要放到`plugins`文件夹即可使用。
105 |
106 | CraftBukkit 有以下的属性:
107 |
108 | - 基于 Vanilla 二次开发
109 | - **可以** 安装支持 BukkitAPI 的插件
110 | - 性能较差
111 |
112 | *为什么不推荐?:CraftBukkit 虽然是跨时代性的,但他和 Vanilla 的性能一样差(甚至更差),因此在后来的日子里诞生了很多自带优化的服务端,CraftBukkit 对于我们来说只是一个过去时代的丰碑罢了,并不能满足实际使用需求了*
113 | *讲个题外话,CraftBukkit 曾经的开发者现在要么离开了自己心爱的项目,要么去了 SpigotMC 团队,有一个人挺不寻常,他叫 Searge,他最后收到了 Mojang 的邀请,前去开发 Minecraft 了。对于有的 Mod 开发者来说,你应当知道 Mod Code Pack(MCP)也是由 Searge 等人发起的,而MCP使用的映射名「Srg 名」,也是为了纪念 Searge 这位巨佬*
114 |
115 |
116 | 下载 CraftBukkit:
117 |
118 | 1. BukkitDev官方:http://dl.bukkit.org/ (由于Mojang EULA和DMCA的要求,已停止服务)
119 | 2. SpigotMC官方:https://hub.spigotmc.org/jenkins/job/BuildTools/ (CraftBukkit不直接提供,你只能通过BuildTools手动构建)
120 | 3. 使用第三方下载站下载已经构建好的CraftBukkit(如GetBukkit:https://getbukkit.org/download/craftbukkit)
121 |
122 | ::: details 注释 4
123 |
124 | [10]: 把 CraftBukkit 称作 Bukkit 其实是不负责任的,Bukkit 其实是一个规范,他仅包含接口,不包含实现,我们不应将两者划等号。
125 |
126 | :::
127 |
128 | 3. Spigot
129 |
130 |
131 | CraftBukkit 是挺好,但是他性能和 Vanilla 一样捉急,甚至装多了插件还可能会更差,人们急切需要一个能够优化服务端处理逻辑,提升服务器性能的服务端,曾经有过多种这样的服务端,有的可能优化了TNT爆炸逻辑,有的可能优化了耕田逻辑,但是活到最后的,是包含了他们之中绝大部分优化功能的 **Spigot**。
132 | Spigot 由 SpigotMC 团队开发,可以说是 CraftBukkit 的正统续作,他不仅完全兼容 BukkitAPI 规范,还提供了更多独有的开发API[14],最重要的是,这个服务端优化很好,因此十分稳定。(spigot yyds
133 |
134 | Spigot 有以下的属性:
135 |
136 | - 基于 CraftBukkit
137 | - **可以** 安装支持 BukkitAPI,SpigotAPI 的插件
138 | - 稳定性好
139 | - 性能较好
140 |
141 |
142 | 下载 Spigot:
143 |
144 | 1. SpigotMC 官方:https://hub.spigotmc.org/jenkins/job/BuildTools/ (Spigot不直接提供,你只能通过BuildTools手动构建)
145 | 2. 使用第三方下载站下载已经构建好的Spigot(如GetBukkit:https://getbukkit.org/download/spigot)
146 |
147 | ::: details 注释 5
148 |
149 | [14]: Spigot提供的独有API被称作SpigotAPI,其独立于CraftBukkit原生的BukkitAPI(虽然CraftBukkit现在由SpigotMC同时维护,但依然把一些API分开了),后面要提的Paper服务端也同样提供了PaperAPI,同SpigotAPI和BukkitAPI隔离了起来。这也是服主们开服时某些插件在不同的服务端有不同的运行情况(有的能用有的不能了)的原因。此处独有也是指在当时,现在只要基于Spigot的核心都应支持SpigotAPI。
150 |
151 | :::
152 |
153 | 4. **Paper**(曾用名 PaperSpigot,有时被称为 PaperClip[15])
154 |
155 |
156 | 一方面是认为 Spigot 更新太慢了,又一方面是认为 Spigot 的 BuildTools 太麻烦了,还一方面是因为 Spigot 的优化还 不 够 劲,因此,一群人创建了 Paper。
157 |
158 | Paper 有以下的属性:
159 |
160 | - 基于 Spigot
161 | - **可以** 安装支持 BukkitAPI,SpigotAPI,PaperAPI 的插件
162 | - *部分*自带原生 GUI 控制台窗口[16]
163 | - 稳定性较好
164 | - 性能好
165 | - 更新迅速
166 | - 提供了更多的优化和服务端个性化选项[17] [18]
167 | - 构建、使用方便
168 | - 搭载了较为先进的 Aikar's Timings® 性能分析系统[19]
169 |
170 |
171 | *为什么推荐?:Paper 是一个兼具稳定,性能,拓展的服务端核心,不仅提供了很多有效的优化,更有很多自定义选项供服主选择,几乎 100% 兼容 BukkitAPI 插件也是人们选择 Paper的主要原因*
172 |
173 |
174 | 下载 Paper:
175 |
176 | 1. PaperMC 官方: https://papermc.io/downloads (对于旧版本核心,你可以前往页末的`LEGACY`标签下载不受支持的旧版的 Paper 核心
177 |
178 | ::: details 注释 6
179 |
180 | [15]: 此处 PaperClip 应当指的是 Paper 的**补丁安装器**,不含 Paper 核心本体,但因为用补丁安装器安装补丁并启动服务器基本感觉是一气呵成的所以大家总是把 PaperClip 当做 Paper 本体。
181 | [16]: 之所以说部分支持,是因为大部分版本Spigot是把这个丑到爆炸的控制台删掉了的(即只能使用 CMD 或 Linux Shell 开服),但自某个高于 1.15 的版本起,Paper 又恢复了这个控制台以防你手贱双击打开了JAR但没有办法操控服务器,但这会导致在你不指定`nogui`参数时用命令行开服依然会把那个控制台给召唤出来。
182 | [17]: 位于`.\paper.yml`。其实Spigot也是有这样的文件的,位于`.\spigot.yml`,同理,CraftBukkit 也有,位于`.\bukkit.yml`,下游服务端是同时拥有上游服务端的这些文件的,因此新的服务端定义的新的文件提供了上游服务端所没有的新特性供服主们设定,而不是相互挤兑冲突。
183 | [18]: Hey,也许你是一个生电玩家转生的新手服主,希望开一个生电服,如果如此,请切记**不要**使用 Paper,Paper 内含对包括 0tick 等 Minecraft 原版「特性」的修复,可能会导致你和你的玩家感到疑惑,因此,你应当使用 **Spigot**。
184 | [19]: Timings 是一种自 Spigot 开始自带的性能分析器,允许你通过一个网页查看一段时间内服务器的总耗能情况,据此推断出哪些插件,或是哪些世界,或是哪些生物卡服。Spigot 也有 Timings,但是是旧版的,一般称作 Spigot Timings,虽也是由 Aikar 设计但是网页界面观感和功能都相差甚远。Aikar's Timings 同时也搭载在 Sponge 核心中。
185 |
186 | :::
187 |
188 | 5. Tuinity
189 |
190 |
191 | 众所周知,Paper 是开源的,那么这意味着,所有人都可以通过Paper所在的代码托管网站 *Github* 向 PaperMC 团队提交各种各样的漏洞修复/性能优化代码,而 PaperMC 团队也可以选择性的将这些代码合并到自己的项目中,完成一次协作。前往 Paper 的 Github 的 [Pull Request](https://github.com/PaperMC/Paper/pulls) 界面,你可以看到这里依然还有超过 60 个的代码合并请求尚在活跃状态但未被 PaperMC 团队合并。这些提交中可能包含着诸如视距优化这样的刚需,也包含对开发者有益的API更新。
192 |
193 |
194 | 但Paper就是不合并,你也没办法。
195 |
196 |
197 | 因此,一名叫做 *Spottedleaf* 的大佬站了出来,Fork[20]了 Paper 的仓库,然后把那一堆PR[21]全合并了,又作了一些改动,最后,Tuinity 横空出世了
198 |
199 |
200 | 曾经一段时间内,Tuinity 仅支持JRE11[22]作为其运行环境 但现在 Tuinity 只需 JRE8+ 即可运行
201 |
202 |
203 | 启动 Tuinity 会生成 tuinity.yml,在其中可设置单玩家怪物生成,分离视距等高级参数。即使你不会设置这些参数,Tuinity 自身自带的一个个优化也足以你的服务器使用。
204 |
205 |
206 | Tuinity 有以下的属性:
207 |
208 | - 基于 Paper
209 | - **可以** 安装基于 BukkitAPI,SpigotAPI,PaperAPI,TuinityAPI 的插件
210 | - **不可以** 安装基于任何 API 的模组
211 | - 性能极佳
212 | - 更新较快
213 | - 较为稳定
214 |
215 |
216 | 下载 Tuinity:
217 |
218 | 1. CodeMC 自动构建站: https://ci.codemc.io/job/Spottedleaf/job/Tuinity/
219 |
220 | ::: details 注释 7
221 |
222 | [20]: 指使用 Git 克隆(拷贝)别人的代码仓库到自己的名下的行为
223 | [21]: 即 Pull Request,拉取请求,就是上面说的那些希望合并的代码
224 | [22]: 即 Java Runtime Environment(Version 11),Java11 的运行环境。同理,后文中 JRE8+ 也指 Java8 以上的运行环境
225 |
226 | :::
227 |
228 | 6. Akarin/Torch[23]
229 |
230 |
231 | 用 *Akarin Project* 开发者们的原话来说,Akarin 是一个 **「来自新纬度的服务端」** *(A server software from the 'new dimension'.)*,其本质原因是 Akarin 以 **多线程** *(Multi-Threaded)*著称。
232 |
233 |
234 | 那么在此之前,我们需要了解什么是多线程。简单的来说,人一般情况下只能专心干一件事情,那么我们可以把这种行为叫做单线程;如果你能一下干多个事情,那么这就是所谓多线程——从软件或者硬件上实现多个线程并发执行的技术。
235 |
236 |
237 | 在 Akarin 之前,绝大多数的服务端的核心任务都是由主线程这一条线程完成的,如果同时有很多事情要做,那么他得做完了一个再做另外一个,这就有可能引起卡顿。
238 |
239 |
240 | 如果做的这件事情无线重复,或是要花费太长时间以至于连服务器的基本运行事件都给挡住了,那么就会引起**堵塞**,导致服务器瞬卡甚至崩溃。
241 |
242 |
243 | 通过使用 Akarin,我们可以将主线程本应完成的动作转移到其他子线程同时执行,极大的减缓了服务器压力。
244 |
245 |
246 | 当然,因为这是一个新技术,同时让一个本不兼容多线程的东西兼容多线程是一个很难的工程,因此总会有不稳定因素。
247 |
248 | Akarin 有如下的属性:
249 |
250 | - 基于 Paper/Tuinity[24]
251 | - **可以** 安装基于 BukkitAPI,SpigotAPI,PaperAPI,**可能可以**安装基于 TuinityAPI 的插件
252 | - **不可以** 安装基于任何 API 的模组
253 | - 性能极佳
254 | - 支持多线程
255 | - 更新不快
256 | - 不太稳定
257 |
258 |
259 | 下载 Akarin:
260 |
261 | 1. Github Actions: https://github.com/Akarin-project/Akarin/actions
262 | 2. JosephWorks Jenkins: http://josephworks.ddns.net:8080/job/Akarin-project/
263 |
264 | ::: details 注释 8
265 |
266 | [23]: Torch,前称 TorchSpigot,是一个支持 1.8.8 的优化核心,是Akarin服务端的前身。由于在部分代码和统计系统上,Akarin 仍使用*「Torch」*表示 Akarin 服务端,因此这里同时将 Torch 写上
267 | [24]: 自1.14开始,Akarin 开始使用 *Tuinity* 作为其项目前置,而不是原来的*Paper*,同时因此该服务端对不同API的插件兼容性需注意使用的服务端版本
268 |
269 | :::
270 |
271 |
272 | 如果你看到了这里,那么恭喜你,你已经结束了所有**主流** BukkitAPI 系服务端的介绍,接下来是一些搭载 ForgeAPI 或 FabricAPI 的模组服务端,两个基于 SpongeAPI 的服务端和两个魔怔猎奇基于其他API的服务端介绍,如果你不需要了解这些,请直接跳到下一节。
273 |
274 | 7. VanillaForge
275 |
276 |
277 | 让我们把视线调转回刚开始的 Vanilla,如果说 Bukkit 让修改服务端变成了可能,那么就一定有一个东西能够让修改客户端变为可能,而Forge就是。
278 | VanillaForge 则是一个 Vanilla+ForgeAPI 的服务端,他允许你安装 ForgeMod,处理自定义物品,自定义方块,自定义实体操作。
279 |
280 | VanillaForge 有如下的属性:
281 |
282 | - 基于 Vanilla
283 | - **可以** 安装支持 ForgeAPI 的模组
284 | - 稳定性较好
285 | - 性能较差
286 | - 可插拔性强,易于更新[25]
287 |
288 |
289 | 下载 VanillaForge:
290 |
291 | 1. 前往 Forge 官网下载 Forge Installer,并选择 install server 模式,将安装目录指向运行过一次的 Vanilla 服务端: http://files.minecraftforge.net/
292 |
293 | ::: details 注释 9
294 |
295 | [25]: 为什么要可以强调“可插拔性强,易于更新”呢,因为后面你将会看到,所有BukkitAPI+ForgeAPI的服务端(甚至Sponge系服务端)都需要糅合自己的API和ForgeAPI的代码,这导致Forge的部分代码和库是强制写死在服务端上的,你不能手动更新Forge版本。但VanillaForge只支持ForgeAPI,因此没有这个问题
296 |
297 | :::
298 |
299 | 8. Cauldron/MCPC+
300 |
301 |
302 | 那么究竟有没有能同时兼容 BukkitAPI 和 ForgeAPI 的服务端呢?
303 | 答案是当然,最初搞出来这个玩意的服务端叫做 MCPC+,自1.7.10 起改名为 Cauldron,随后停更。
304 | 同时你也将看到,由于「糅合」的复杂性和难以维护性,因此每一个 BukkitAPI+ForgeAPI 服务端几乎都只维护一个主流版本,这也是此类服务端遍地开花的一个主要原因。
305 | Cauldron 有如下的属性:
306 | - 已停更
307 | - 基于 Spigot
308 | - **可以** 安装支持 BukkitAPI,SpigotAPI 的插件
309 | - **可以** 安装支持 ForgeAPI 的模组
310 | - 支持至最高 1.7.10
311 |
312 | *为什么不推荐?:同 CraftBukkit 一样,Cauldron 也已然成为了一个时代的奠基人和里程碑,其原始的完整代码仓库现在甚至无法被找到,我们也只能在各式各样的第三方构建站看到他的身影。只闻其声,不闻其形。*
313 |
314 |
315 | 下载 Cauldron:
316 |
317 | 1. 前往第三方构建站下载
318 |
319 | 9. KCauldron
320 |
321 |
322 | KCauldron 是 Cauldron 的优化版/继承。
323 |
324 | KCauldron 有如下的属性:
325 |
326 | - 已停更
327 | - 基于 Cauldron
328 | - **可以** 安装基于 BukkitAPI,SpigotAPI 的插件
329 | - **可以** 安装基于 ForgeAPI 的模组
330 | - 仅支持 1.7.10
331 |
332 | 下载 KCauldron:
333 | 1.前往第三方构建站下载
334 |
335 | 10. Thermos
336 |
337 |
338 | Thermos 是 KCauldron 的优化版。
339 |
340 | Thermos 有如下的属性:
341 |
342 | - 已停更
343 | - 基于 KCauldron
344 | - **可以** 安装基于 BukkitAPI,SpigotAPI 的插件
345 | - **可以** 安装基于 ForgeAPI 的模组
346 | - 仅支持 1.7.10
347 |
348 |
349 | 下载Thermos:
350 |
351 | 1. Github Releases: https://github.com/CyberdyneCC/Thermos/releases
352 |
353 | 11. Contigo
354 |
355 |
356 | Contigo 是 Thermos 的优化版/继承。
357 |
358 | Contigo 有如下的属性:
359 |
360 | - 已停更
361 | - 基于 Thermos
362 | - **可以** 安装基于 BukkitAPI,SpigotAPI 的插件
363 | - **可以** 安装基于 ForgeAPI 的模组
364 | - 仅支持 1.7.10
365 |
366 |
367 | 下载 Contigo:
368 |
369 | 1. Github Releases: https://github.com/djoveryde/Contigo/releases
370 |
371 | 12. Uranium
372 |
373 |
374 | Uranium 是一款基于 KCauldron 的 BukkitAPI+ForgeAPI 服务端,其整合了部分Thermos对服务端的修复,同时进行了一些输入书与笔虚体问题的BUG修复。其最大的特点[26]是强制使用 UTF-8 编码作为配置文件编码[27]和通过 UraniumPlus Mod 令 1.7.10 客户端支持 Title 和 Actionbar[28]。
375 |
376 | Uranium 有如下的属性:
377 |
378 | - 基于 KCauldron
379 | - **可以** 安装基于 BukkitAPI,SpigotAPI 的插件
380 | - **可以** 安装基于 ForgeAPI 的模组
381 | - 仅支持 1.7.10
382 |
383 |
384 | 下载 Uranium:
385 |
386 | 1. Jenkins CI: https://ci.uraniummc.cc/job/Uranium-dev/
387 |
388 | ::: details 注释 10
389 |
390 | [26]: 仅代表个人观点
391 | [27]: 事实上,我们看到的所有文本,其内容都是经过编码存储在计算机上的,对于 Minecraft 服务端来说,在 1.7.10 版本,Windows 使用 ANSI 编码,而 Linux 使用 UTF-8 编码,这引起了诸多不便,因此 Uranium 强制在所有操作系统上运行该服务端,文件编码均为UTF-8,简化了使用流程
392 | [28]: Title 是自 1.8 引入的,在客户端上显示大标题和副标题的功能;Actionbar 是自 1.8 引入的,在客户端物品栏上方显示字幕的功能
393 |
394 | :::
395 |
396 | **13. CatServer**
397 |
398 |
399 | 不同于 Cauldron 系,CatServer 支持 1.12.2 的 BukkitAPI+ForgeAPI,发展至今已十分稳定,同时也拥有独特的优化和 BUG 修复。
400 |
401 | CatServer 有如下的属性:
402 |
403 | - 基于 Spigot
404 | - **可以** 安装基于 BukkitAPI,SpigotAPI 的插件
405 | - **可以** 安装基于 ForgeAPI 的模组
406 | - 稳定性好
407 | - 性能较好
408 | - 更新较快
409 | - 仅支持 1.12.2
410 |
411 | *为什么推荐?:CatServer 历经多年的打磨,其已经非常稳定,同时因为 1.12.2 版本从技术上讲依然是一个稳定的年轻版本,因此使用 CatServer 开 Mod 服或许是你的不二之选*
412 | *又一个题外话:如果你刚入服主圈,那么你可能不知道,由于作为第一个支持高版本的 BukkitAPI+ForgeAPI 服务端,CatServer 有过一段艰苦,黑暗的发展历史,从“抄袭风波”到收购风波,从付费风波再到“后门风波”,CatServer 曾有过一段饱受诟病的日子,甚至还和下面某些服务端作者产生过争执......笔者作为那段时代的亲历者,只能用一句话来形容那时:
413 | “黑,真他妈的黑啊”*
414 |
415 |
416 | 下载 CatServer:
417 |
418 | 1. Github Releases: https://github.com/Luohuayu/CatServer/releases
419 |
420 | 下载 CatServer-Async[29]:
421 |
422 | 1. Github Releases: https://github.com/Luohuayu/CatServer/releases/tag/Async-final
423 |
424 | ::: details 注释 11
425 |
426 | [29]: 即 CatServer 的多线程版本,用开发者的话来说,「由于多线程版存在过多兼容性问题无法修复, 不再提供更新, 也不推荐使用.」,该版本最后停更于`Mar 19,2020`。本文笔者也不推荐使用此版本
427 |
428 | :::
429 |
430 | 14. Mohist(曾用名 PFCraft)
431 |
432 |
433 | Mohist 和下面的 Magma 一样,都有一点「另类」,他们本体基于 Paper,而不是 Spigot,这意味着这两个服务端不仅可以享受 Paper 带来的漏洞修复和优化,还可以让你轻松使用基于 PaperAPI 开发的插件。
434 |
435 |
436 | Mohist 还支持控制台信息国际化[30],可选择服务端 Mod 语言[31],内置插件管理器[32]等等非常实用的功能。
437 |
438 |
439 | 但是很遗憾,由于 Mohist 本身工程量大难以维护,也由于 Mohist 开发组重组,近几个月内的 Mohist 稳定性并不是很好。
440 |
441 | Mohist 有如下的属性:
442 |
443 | - 基于 Paper
444 | - **可以** 安装基于 BukkitAPI,SpigotAPI,PaperAPI 的插件
445 | - **可以** 安装基于 ForgeAPI 的模组
446 | - 稳定性较差
447 | - 性能较好
448 | - 更新较快
449 | - 控制台/模组本地化支持
450 | - 内置插件管理器
451 | - 支持 1.12.2,1.15.2[35]
452 |
453 | *说个题外话:笔者曾有幸参与了 Mohist 控制台信息的简体中文、繁体中文本地化工作,并亲眼见证了 Mohist 从使用高峰到现在的开发过程。Mohist 的原开发者 Mgazul 是个好人,而且能在家庭条件十分有限的情况下,开发出 Mohist 并开源供大家使用,可以说是我们这个圈子的幸运。*
454 |
455 |
456 | 下载 Mohist-1.12.2:
457 |
458 | 1. CodeMC Jenkins CI: https://ci.codemc.io/job/Mohist-Community/job/Mohist-1.12.2/
459 |
460 | 下载 Mohist-1.15.2:
461 |
462 | 1. CodeMC Jenkins CI: https://ci.codemc.io/job/Mohist-Community/job/Mohist-1.15.2/
463 |
464 |
465 | ::: details 注释 12
466 |
467 | [30]: 该功能会自动本地化控制台信息,为你展示你能看得懂文字(Mohist 现支持简体中文和繁体中文的控制台本地化),效果大约如下:
468 |
469 | 
470 |
471 | [31]: 在一般服务端下,在服务端安装的 Mod 仅能限制默认的美式英文(en_US)本地化语言文本,这导致客户端无法按照本地语言显示文本,即使有汉化也没法看。但 Mohist 通过这项功能解决了这个问题
472 | [32]: 一般来说,服务端插件在服务器启动以后便不能,安装、卸载、更新,要想那么做,得先关闭服务器,这很耗时,插件管理器允许你通过执行指令,在服务器开启的情况下热配置插件。著名的插件管理器 PlugMan 和 Yum 两个插件,而 Mohist 自带了他们的部分功能
473 | [35]: 有消息称 Mohist 开发组正在研发/测试 1.16 版本的 Mohist,且 Mohist 代码仓库中确实存在标签为「1.16.x」的代码分支(空仓库)
474 |
475 | :::
476 |
477 | 15. Magma
478 |
479 |
480 | Magma 同样是一个基于 Paper[36]的 BukkitAPI+ForgeAPI 服务端。
481 |
482 | Magma 有如下的属性:
483 |
484 | - 基于 Paper
485 | - **可以** 安装基于 BukkitAPI,SpigotAPI,PaperAPI[^36]的插件
486 | - **可以** 安装基于 ForgeAPI 的模组
487 | - 稳定性较好
488 | - 性能较好
489 | - 更新较快
490 | - 支持 1.12.2,1.15.2[37]
491 |
492 |
493 | 下载 Magma-1.12.2:
494 |
495 | 1. Github Releases: https://github.com/magmafoundation/Magma/releases (稳定版,请下载-server结尾的版本,-installer结尾的版本暂无法使用)
496 | 2. Jenkins CI: https://ci.hexeption.dev/job/Magma%20Foundation/job/Magma/job/master/ (开发版)
497 |
498 | 下载 Magma-1.12.2-全Paper特性支持版:
499 |
500 | 1. Jenkins CI: https://ci.hexeption.dev/job/Magma%20Foundation/job/Magma/job/feature%252Ffull-paper-support/ (开发版)
501 |
502 | 下载 Magma-1.15.2:
503 |
504 | 1. Jenkins CI: https://ci.hexeption.dev/job/Magma%20Foundation/job/Magma-1.15.x/job/1.15.x/lastSuccessfulBuild/ (开发版)
505 |
506 | ::: details 注释 13
507 |
508 | [36]: Magma 的主要发行版本并未应用所有 PaperAPI 和 Paper 的补丁,这可能会带来一些问题
509 | [37]: 根据 Magma 项目说明,Magma 尚在积极开发对 1.16 版本的支持,同时,Magma-1.15.2 目前仅处于 Beta 测试版阶段,可能尚不稳定
510 |
511 | :::
512 |
513 | 16. Arclight
514 |
515 |
516 | Arclight 是一款「在 Forge 上使用 Mixin 实现的 Bukkit 服务端」,提供了 1.14.4 和 1.15.2 两个高版本的 BukkitAPI+ForgeAPI 支持
517 |
518 | Arclight 有如下的属性:
519 |
520 | - 基于 Spigot
521 | - **可以** 安装基于 BukkitAPI,SpigotAPI 的插件
522 | - **可以** 安装基于 ForgeAPI 的模组
523 | - 稳定性相对较好
524 | - 性能较好
525 | - 更新较快
526 | - 支持 1.14.4,1.15.2
527 |
528 |
529 | 下载 Arclight(1.14.4,1.15.2):
530 |
531 | 1. Github Releases: https://github.com/IzzelAliz/Arclight/releases
532 | 2. AppVeyor CI: https://ci.appveyor.com/project/IzzelAliz/arclight/build/artifacts
533 |
534 |
535 | 如果你看到了这里,那么恭喜你已经结束了所有**主流 **BukkitAPI+ForgeAPI 服务端的了解,接下来是一些搭载 FabricAPI 的模组服务端,两个基于 SpongeAPI 的服务端和两个基于其他 API 的服务端介绍,如果你不需要了解这些,请直接跳到下一节。
536 |
537 | 17. SpongeVanilla&SpongeForge
538 |
539 |
540 | 让我们再将目光转回 CraftBukkit 时期。一群人做出 BukkitAPI 以后,发现这个东西实在是太垃圾了:对 Mod 兼容性差,没有开发文档,代码规范随意,这不是他们想要的那个 API。于是,一群人离开了 Bukkit 开发团队,转而开始制作他们心目中的那个完美的 API 框架——幸运的是,他们做出来了,这就是 SpongeAPI 和他的服务端实现:Sponge
541 |
542 |
543 | Sponge 分为 SpongeVanilla 和 SpongeForge 两个版本:前者需要与 Vanilla 一起使用,他通过注入[38]的方式,允许你在 Vanilla 服务端上安装基于 SpongeAPI 的插件;后者实现在 Forge 上,允许你在 VanillaForge 上安装基于 SpongeAPI 的插件(同时享受安装基于 ForgeAPI 的模组),需要提到的是,在 SpongeForge 中,其其实是作为一个 **ForgeMod** 来使用(即将其放入`.\mods`中并启动服务端),而非作为一个完整的服务端运行核心文件。
544 |
545 |
546 | 很遗憾的是,由于生不逢时,Sponge 并没有得到大多数开发者的支持,因此基于 SpongeAPI 开发的插件少之甚少,主流 BukkitAPI 插件迁移至 SpongeAPI 的更是屈指可数,因此对于普通服主来说,使用 Sponge 会导致在插件支持上落后于 Bukkit 使用者。
547 |
548 |
549 | 同时,由于自 1.13 起,由于 Minecraft 源代码的大幅度改动导致ForgeAPI大幅度改动其代码,致使 Sponge 始终难以兼容 1.13 及以上版本,直到最近才发布了对 1.14.4版本的支持
550 |
551 | SpongeVanilla 有如下属性:
552 |
553 | - **可以** 安装支持 Sponge 的插件
554 | - 性能相对很好
555 | - 更新较快
556 | - 稳定性很好
557 | - 社区支持友好
558 | - 插件生态较差
559 | - 支持至最高 1.14.4
560 |
561 |
562 | SpongeForge 有如下属性:
563 |
564 | - 基于 ForgeAPI
565 | - **可以** 安装支持 SpongeAPI 的插件
566 | - **可以** 安装支持 ForgeAPI 的模组
567 | - 性能相对很好
568 | - 更新较快
569 | - 稳定性很好
570 | - 社区支持友好
571 | - 插件生态较差
572 | - 对模组兼容性较差,但插件对模组兼容性极佳
573 | - 支持至最高 1.14.4
574 |
575 |
576 | 下载 SpongeVanilla:
577 |
578 | 1. SpongePowered 官方: https://www.spongepowered.org/downloads/spongevanilla/stable/
579 |
580 | 下载 SpongeForge:
581 |
582 | 1. SpongePowered 官方: https://www.spongepowered.org/downloads/spongeforge/stable/
583 |
584 | *题外话:曾经有一段时间,Sponge 是市面上唯一一个支持 1.8+ 高版本插件+模组的服务端,当Bukkit阵营始终停留在 1.7.10 时,已经支持之 1.12.2 的 Sponge 收到了大部分神奇宝贝服服主的欢迎*
585 |
586 | ::: details 注释 14
587 |
588 | [38]: 是一种将自定义代码导入到已有的计算机程序内,从而改变原程序的行为的行为
589 |
590 | :::
591 |
592 | 18. VanillaFabric
593 |
594 |
595 | 前面我们提到了`由于自1.13起,Minecraft源代码的大幅度改动`,这导致了 CraftBukkit/Spigot,Sponge,Forge 等项目分别出现了时常不同的窗口期,这段时间内这些项目都没有发布对新版本的支持。
596 | 在这段长达半年的窗口期中,涌现了几个新的 ModAPI,抛去因为夹带私货和停止支持的 RiftAPI,便只剩下了在当时乃至现在最流行的新生代 API——Fabric[39]
597 |
598 |
599 | Fabric 和 Rift 不同,他不是在那段窗口期诞生的替代产品,他早自 1.12 时代就已出现,只不过和 Sponge 一样同样生不逢时,虽然设计先进,但大多数开发者当时依然只依赖于 Forge 开发模组而不是 Fabric,知道窗口期的来临,Fabric 才得以重获新生,得到了一部分开发者的支持[40]。
600 |
601 |
602 | Fabric 是**模块化**[41]的,这意味着他不想高耦合的 Forge,每次 Minecraft 源代码更新就要折腾一阵子推倒重来,他完全可以拆出不兼容的模块,并更换上兼容新版本的模块以快速发布更新,这也是 Fabric 甚至有针对每一个 Minecraft 预览版(Snapshot)的支持的原因。
603 |
604 |
605 | VanillaFabric 则和 VanillaForge 类似,是基于 Vanilla 的实现了 FabricAPI 支持的服务端,他允许你安装 FabricMod。
606 |
607 | VanillaFabric 有以下属性:
608 |
609 | - 基于 Vanilla
610 | - **可以** 安装支持 FabricAPI 的模组
611 | - 稳定性较好
612 | - 性能相对较好
613 | - 可插拔性强,易于更新
614 |
615 |
616 | 下载 VanillaFabric:
617 |
618 | 1. 前往 Fabric 官网下载 Fabric Installer,并选择 install server 模式,将安装目录指向运行过一次的 Vanilla 服务端: https://fabricmc.net/use/
619 |
620 | ::: details 注释 15
621 |
622 | [39]: 此处很显然不严谨,Fabric 本体是一个模组加载器(Mod Loader),不是一个 ModAPI,Fabric 的 ModAPI 是 FabricAPI,但因为 Fabric 的模块化设计,FabricAPI 作为 FabricMod 与 Fabric 本体(Fabric Loader)分离,不默认提供,因此 FabricAPI 又不能代表 Fabric,故如此表示
623 | [40]: 虽然设计确实先进,但随着 Forge 发布对新版本的支持,Fabric 又逐渐趋向没落,只留下来了一些或是小型的,或是客户端向模组的青睐,比如 ReplayMod
624 | [41]: 是指将一整个代码项目设计成由多个互不相关又互相联系的模块,方便维护的代码设计模式
625 |
626 | :::
627 |
628 | *19.Fukkit*
629 |
630 |
631 | Fukkit是一款实现了 BukkitAPI+FabricAPI 支持的服务端,现已停更归档,因此不多赘述,也不提供下载地址。
632 |
633 |
634 | *为什么不推荐?:已归档,不稳定*
635 |
636 |
637 | 如果你看到了这里,那么恭喜你已经结束了所有**主流**服务端的介绍,接下来是两个*看看就好*的服务端的介绍,如果你不需要了解这些,请直接跳到下一节。
638 |
639 | *20.Glowstone*
640 |
641 |
642 | 如果你是个聪明人,你会发现上面的所有服务端都基于 Mojang 提供的官方服务端 Vanilla,那么有没有不依赖于 Vanilla 的服务端呢,答案是有,这就是 Glowstone。
643 |
644 |
645 | Glowstone 完全不依赖任何 Mojang 的源码,因此他非常的自由,不会受到 Mojang EULA 和 DMCA 的管控。
646 |
647 | Glowstone 有如下属性:
648 |
649 | - 少更新
650 | - **可以** 安装支持 BukkitAPI,SpigotAPI,PaperAPI,GlowstoneAPI 的插件
651 | - 稳定性不好
652 | - 性能较好
653 | - 缺少很多原版内容
654 | - 仅支持 1.12.2
655 |
656 | *为什么不推荐?:由于 Glowstone 不基于 Vanilla,所有 Vanilla 负责的游戏行为都由其自行处理,因此 Vanilla 提供的一些东西未在 Glowstone 中提供,Bukkit同理。这会导致一些Bukkit插件无法在 Glowstone 运行,因此对于绝大多数服主都不友好,故不推荐使用*
657 |
658 |
659 | 下载 Glowstone:
660 |
661 | 1. Glowstone 官方: https://glowstone.net/#downloads
662 |
663 | 21. Cuberite
664 |
665 |
666 | Cuberite 同样完全不依赖任何 Mojang 的源码,因此他非常的自由,不会受到 Mojang EULA 和 DMCA 的管控。
667 |
668 |
669 | 而且,Cuberite 支持跨版本运行,1.8-1.12.2 的客户端均能加入到你的 Cuberite 服务器中
670 |
671 |
672 | 说起来你可能不信,Cuberite 甚至还能在 Android™️ 上运行。
673 |
674 | Cuberite 有如下属性:
675 |
676 | - 少更新
677 | - Android™️ 跨平台支持
678 | - **可以** 安装支持 CuberiteAPI 的插件
679 | - 稳定性不好
680 | - 性能较好
681 | - 缺少很多原版内容
682 | - 同时支持 1.8-1.12.2[43]
683 |
684 | *为什么不推荐?:比起GlowStone,他连BukkitAPI都不支持。
685 |
686 | 下载 Cuberite:
687 |
688 | 1. Cuberite 官方: https://cuberite.org/
689 |
690 |
691 | [43]: 来自其官网说明,但根据其开源项目提交日志,Cuberite 应已支持 1.14 版本的连接,并正在尝试对 1.15 的特性进行兼容
692 |
693 |
694 | 最后,以上服务端的迭代关系大致如下:
695 | 
696 |
697 |
698 | 至此,你已经完成第一节的所有学习,并基本了解了所有主流服务端以及其迭代关系。动核心」,他只是让发布者间接发布了可以直接启动的核心
699 |
700 |
--------------------------------------------------------------------------------
/guide/n2.md:
--------------------------------------------------------------------------------
1 | # 二、服务端核心的安装与使用
2 | 由于篇幅原因,本节仅介绍上文中**非不推荐**核心的安装和使用方式,其他服务端的安装方式请自行查阅文档或自行探索。
3 |
4 | ## 安装 Java
5 |
6 | ### 确定操作系统架构
7 | 对于新手来说,下载了不适合与自己服务器/计算机的操作系统的 Java 是非常难过的,为了最大化利用计算机性能,一般情况下服主们都会为服务端设置最大内存,但因为支持 x86 架构(32位系统)的 Java 最大只能为服务端分配 1024MB 的内存,超出这个数值会导致无法开服。只有支持 x86_64 架构 (64位系统) 的 Java 才能支持更大的最大内存。
8 | 对于 Windows 操作系统(家用操作系统),请右击您桌面上的```计算机/此电脑``` (Win7,Win8,Win8.1,Win10) 图标,选择```属性```,查看操作系统为 32 位还是 64 位; 如果您没有看到以上图标,而是看到了```我的电脑``` (WinXP),那么您的操作系统一般应为 32 位。
9 | 对于 Windows 操作系统(服务器),您可通过服务器管理器或是通过其他方式查看您的操作系统架构。
10 |
11 | ### 下载并安装 Java 8
12 | 对于 1.8+ 服务端,他们均需要 Java 8 或以上版本[^1]运行,因此您可前往 [Java 官方网站下载页](https://www.java.com/zh_TW/download/manual.jsp)[^2] 下载 Java 8 的运行环境 (JRE8) 以支持启动您的服务端。
13 | 如果您是 32 位的 Windows 操作系统,请选择 ```Windows``` 栏目下的 ```Windows 離線``` 安装包; 如果您是 64 位的 Windows 操作系统,请选择 ```Windows``` 栏目下的 ```Windows 離線(64位元)```; 对于 Mac OS X 和 Linux 系统,请自行按照各自的档案类型下载对应的安装包。下载完成后,请自行打开文件进行安装操作。
14 |
15 | ### 下载并安装 Java 7
16 | 对于 1.7.10 或更低版本的服务端,您可能需要下载已不受支持的 Java 7 以运行。您需要前往 [Oracle官网](https://www.oracle.com/java/technologies/javase/javase7-archive-downloads.html) 下载已被归档的 Java 7。
17 | 您需要前往该网站下方的 ```Java SE Runtime Environment 7u80``` 下载Java运行环境,而非下载上方的 ```Java SE Development Kit 7u80``` Java 开发工具包。
18 | 如果您是 32 位的 Windows 操作系统,请选择 ```Windows x86``` 安装包; 如果您是 64 位的 Windows 操作系统,请选择 ```Windows x64```; 对于 Mac OS X 和 Linux 系统,请自行按照各自的档案类型下载对应的安装包。
19 | 您可能需要注册并登录 Oracle 账号以下载 Java 7。
20 | 下载完成后,请自行打开文件进行安装操作。
21 |
22 | ### 关于OpenJ9
23 | 有一种非官方的 JVM[^3] 实现,它的名字叫做 OpenJ9,其以```高性能,可拓展```著称,此处我们不介绍 OpenJ9 的详细安装方式,但有需要的服主可前往 [AdoptOpenJDK](https://adoptopenjdk.net/) 网站了解并下载 OpenJ9 JVM。
24 |
25 | ## 安装服务端
26 |
27 | 此处我们已假设您已正确安装 Java 运行环境 (JRE) 并已完成您所需要的服务端核心的下载。
28 | 为了方便和美观起见,您应当创建一个新的文件夹,并放入您的服务端核心,以此文件夹作为根目录开始您的开服旅程。
29 |
30 | ### 适用于 Vanilla, CraftBukkit, Spigot 的安装和使用教程
31 | * 对于 Windows 用户,您可通过直接双击 ```minecraft_server_1.x.x.jar``` 运行服务端,当服务器完全就绪[^4]后即可通过默认的连接地址[^5]连接到服务器。
32 | * 对于希望使用 CMD 控制台的 Windows 用户来说,您可通过 ```Shift+右键``` 在服务端根目录启动命令行,或是直接创建一个以 ```.bat``` 结尾的批处理文件,并写入以下内容。
33 |
34 | ```cmd
35 | @echo off
36 | java -Xmx1024M -jar minecraft_server_1.x.x.jar -nogui
37 | pause
38 | ```
39 | 其中的 ```-Xmx1024M``` 用于指定最大内存,您可将 ```1024M``` 更换为您需要指定的最大内存,例如 ```-Xmx2048M```,```-Xmx4G```。
40 | 核心名称中的 ```1.x.x``` 代表你的服务器版本。
41 | 对于 Linux 用户,您可通过 ```cd``` 指令进入服务端根目录,或是直接在服务端根目录创建一个以 ```.sh``` 结尾的Linux shell文件,并写入以下内容。
42 |
43 | ```shell
44 | java -Xmx1024M -jar .\minecraft_server_1.x.x.jar -nogui
45 | ```
46 | 其中,你应将 ```java``` 替换为 ```"您的Java JRE存放位置\bin\java.exe"```。
47 | 自 1.8 起,当你第一次启动服务端时,服务器会先在根目录生成一个```eula.txt```,随后服务器会自动关闭。
48 | 请打开 ```eula.txt```,届时您会看到这样的文字。
49 |
50 | ```yaml
51 | #By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
52 | #Fri Jul 31 12:26:16 CST 2020
53 | eula=false
54 | ```
55 |
56 | 请将其中的 ```eula=false``` 修改为 ```eula=true```[^6],然后重新启动服务器。此时,服务器才会正式启动。
57 | 最后,您可通过在控制台[^7]内输入 ```stop``` 或在游戏内输入 ```/stop``` 关闭服务器。
58 |
59 | ### 适用于 Paper, Tuinity, Akarin 的安装和使用教程
60 | 基本同上,只需将核心名称替换为你的核心名称即可。但请注意,`Paper, Tuinity, Akarin`等衍生于 Paper 的核心第一次启动都需要下载 Vanilla 文件以完成打补丁操作,对于某些网络不稳定的地方,你可能会一直卡在 ```Downloading cache```上。对于这种问题,你可以通过上方提供的或其他渠道先下载对应版本的 Vanilla,然后将核心改名为```mojang_1.x.x.jar``` (1.x.x代表你的服务器版本),放入 ```·\cache``` 文件夹内,开启服务器即可开始打补丁操作。
61 |
62 | ### 适用于 VanillaForge, VanillaFabric 的安装和使用教程
63 | 请先按照第一则教程安装并完全启动一次 Vanilla,随后关闭服务端。
64 | 打开 Forge 或 Fabric 的安装器,选择 ```install server```,并将目录选择至服务器根目录,点击 ```安装(Install)```,在自动下载 libraries (需保持网络畅通,不然可能会导致下载失败) 完成后,ForgeVanilla 或 FabricVanilla的核心便会出现在根目录上,此时将启动参数的 jar 指向新的核心,即可开始开服。
65 |
66 | ### 适用于 SpongeVanilla 的安装和使用教程
67 | 与第一则教程相同,只需将核心名称替换为你的核心名称即可。请注意 Forge 的版本必须于 SpongeVanilla 下载页上标注的 Forge 版本相同,否则可能会引发兼容性问题。
68 |
69 | ### 适用于 SpongeForge 的安装和使用教程
70 | 请先按照第三则教程安装并完全启动一次与 SpongeForge 下载页上标注的 Forge 版本相同的 VanillaForge,随后关闭服务端。
71 | 将 SpongeForge 的 jar 文件**直接拖入** ```.\mods``` 文件夹,之后启动服务器即可开服[^8]。
72 |
73 | ### 适用于 Thermos, Contigo 的安装和使用教程
74 | 请在下载这两种服务端核心时注意需要同时下载 ```libraries.zip```[^9]。
75 | 将您下载到的 ```libraries.zip``` 内的 ```libraries``` 文件夹(包括文件夹)解压至服务端根目录,然后按照第一则教程的启动方式启动服务器。
76 |
77 | ### 适用于 Uranium 的安装和使用教程
78 | 基本同上一则教程,前往下载核心时请下载结尾为 ```-server``` 的 jar,下载 libraries 时请下载 [#271构建打包的libraries](https://ci.uraniummc.cc/job/Uranium-dev/271/artifact/build/distributions/Uranium-1710-dev-5-B271-31d6587-libraries.zip)。
79 | 对于使用显示 Title 和 Actionbar 的功能,请自行前往[此处](https://github.com/UraniumMC/UraniumPlus/releases/tag/v1.1)下载 UraniumPlus,并将其作为 MOD 安装至客户端(```.minecraft\mods```)和服务端(```.\mods```)。
80 |
81 | ### 适用于 CatServer/Mohist/Magma/Arclight 的安装和使用教程
82 | 基本同第一则教程。运行所需的 Libraries 应当会自动被下载。
83 | 至此,你已经完成第二节的所有学习,并应已经启动过一次服务器并通过 ```stop``` 指令安全的关闭服务器。
84 |
85 | [^1]: Minecraft使用的开发环境也是 Java 8, 且截止目前,Java 8仍然是 Oracle 公司指定的长期支持版本,因此使用 Java 8 十分稳定。
86 | [^2]: 此处提供了繁体中文版的```下載適用於所有作業系統的 Java```界面,简体中文版的界面因不明原因长期无法连接。
87 | [^3]: 指 Java 虚拟机,运行 Java 应用程序的中间人。
88 | [^4]: 一般来说,服务端完全就绪的标志是一段以 ```Done!``` 开头的句子,但是有的服务端插件可能因为完全就绪后要发送检查更新报告等信息,这段话很容易被忽略,因此您可尝试通过试探性的输入一段存在或不存在的指令,如果控制台反馈了该指令的帮助或是提示类似于 ```Unknown Command. Type /help or ? for help.``` 的未知指令信息,那么大致可认定为服务端已就绪。
89 | [^5]: 默认连接地址为 ```你的IP地址:25565``` ,通过本地连接可使用 ```localhost:25565```,如果您的服务商为您设置了指定端口访问或您只是想单纯不用 ```25565``` 这个端口,那么您可参见下一节设置服务端端口。
90 | [^6]: ```true``` 和 ```false``` 是布尔值,他们分别代表`真`(是)和`假`(否)。设置 ```eula=true``` 即代表您同意 Minecraft 的最终用户许可协议 (EULA) 和 Minecraft 商业化使用条例,您可在[这里](https://account.mojang.com/documents/minecraft_eula)详细阅读 Minecraft EULA.
91 | [^7]: 我们把那个能够执行指令,输出服务器后台信息的窗口叫作控制台
92 | [^8]: 您可通过在控制台输入 ```/sponge plugins``` 查看是否有反馈以确认 Sponge 是否正常安装至 VanillaForge.
93 | [^9]: 需要注意的是,Thermos 提供了两个版本的核心,分别对应着包含了稳定版本(文件名中包含```-1558```,代表 ```Forge1.7.10 - 10.13.4.1558```)和最新版本(文件名中包含```-1614```,代表 ```Forge1.7.10 - 10.13.4.1614```)的 Forge1.7.10。对于现在来说,我们只需直接选择使用 ```Forge1.7.10 - 10.13.4.1614``` 的最新版本即可。
--------------------------------------------------------------------------------
/guide/n3.md:
--------------------------------------------------------------------------------
1 | # 三、服务端核心的配置
2 |
3 | 由于篇幅原因,本节仅介绍 **Spigot** 核心的**主要**配置文件的**主要**配置项。
4 | 本配置对应的服务器版本为 ```1.16.1```.
5 | ## on ```server.properties```
6 | ```properties
7 | #Minecraft server properties
8 | #Fri Jul 31 12:30:46 CST 2020
9 | spawn-protection=16
10 | max-tick-time=60000
11 | query.port=25565
12 | generator-settings=
13 | sync-chunk-writes=true
14 | force-gamemode=false
15 | allow-nether=true
16 | enforce-whitelist=false
17 | gamemode=survival
18 | broadcast-console-to-ops=true
19 | enable-query=false
20 | player-idle-timeout=0
21 | difficulty=easy
22 | spawn-monsters=true
23 | broadcast-rcon-to-ops=true
24 | op-permission-level=4
25 | pvp=true
26 | entity-broadcast-range-percentage=100
27 | snooper-enabled=true
28 | level-type=default
29 | hardcore=false
30 | enable-status=true
31 | enable-command-block=false
32 | max-players=20
33 | network-compression-threshold=256
34 | resource-pack-sha1=
35 | max-world-size=29999984
36 | function-permission-level=2
37 | rcon.port=25575
38 | server-port=25565
39 | debug=false
40 | server-ip=
41 | spawn-npcs=true
42 | allow-flight=false
43 | level-name=world
44 | view-distance=10
45 | resource-pack=
46 | spawn-animals=true
47 | white-list=false
48 | rcon.password=
49 | generate-structures=true
50 | max-build-height=256
51 | online-mode=true
52 | level-seed=
53 | use-native-transport=true
54 | prevent-proxy-connections=false
55 | enable-jmx-monitoring=false
56 | enable-rcon=false
57 | motd=A Minecraft Server
58 | ```
59 |
60 | ```online-mode=true``` 表示是否启用正版验证,默认值为开启。设置为开启即**代表只有 Minecraft 正版玩家才能连接到您的服务器**,一般的"盗版服"均需要将此处设置为关闭。
61 |
62 | ```spawn-protection=16``` 表示出生点保护边长[^53],默认值为```16```。**在该范围内的所有方块将会被禁止交互(如破坏,放置,触发插件监听[^54])**。设置为0即代表关闭出生点保护。
63 |
64 | ```sync-chunk-writes=false``` 自1.16加入,表示是否开启**同步**区块读写,默认为关闭[^55]。将此项目关闭即代表开启异步区块读写,可以加快区块加载速度,但有很大几率导致区块数据损坏[^56]。
65 |
66 | ```force-gamemode=false``` 表示是否强制游戏模式,默认为关闭。开启后每当玩家重新加入服务器都会自动将玩家的游戏模式设置为默认的游戏模式。
67 |
68 | ```allow-nether=true``` 表示是否生成地狱,默认为开启。关闭后地狱世界将不会被生成和加载,玩家也不能进入地狱。
69 |
70 | ```gamemode=survival``` 表示默认游戏模式,默认为```survival```(生存模式)。玩家第一次进入服务器的时候便会被设置成此游戏模式。可选的游戏模式还有```creative```(创造模式),```adventure```(冒险模式),```spectator```(观察模式)[^57]。
71 |
72 | ```player-idle-timeout=0``` 表示玩家AFK踢出时间,单位为分钟,默认为0,代表关闭。设置为非0自然数即代表当玩家超过X分钟没有进行任何活动时,他将会被自动踢出服务器。
73 |
74 | ```difficulty=easy ```表示游戏难度,默认为 ```easy``` (简单)。可选的游戏难度还有 ```peaceful``` (和平), ```normal``` (普通), ```hard``` (困难)[^58]。
75 |
76 | ```spawn-npcs=true``` 表示是否生成 NPC,默认为开启。关闭后将不会自然生成诸如村民这样的NPC生物。
77 |
78 | ```spawn-animals=true``` 表示是否生成动物,默认为开启。关闭后将不会自然生成动物。
79 |
80 | ```spawn-monsters=true``` 表示是否生成怪物,默认为开启。关闭后将不会自然生成怪物。
81 |
82 | ```generate-structures=true``` 表示是否生成结构,默认为开启。关闭后将不会在地图中生成诸如沙漠神庙,废弃矿道这样的结构。
83 |
84 | ```op-permission-level=4``` 表示默认 OP 权限,默认为4。代表了当你使用 ```/op``` 命令时 OP 的默认权限等级[^60]。设置为 1 即代表 OP 仅能绕过出生点保护限制; 设置为 2 即代表 OP 可以使用单人模式作弊指令 (例如 ```/execute``` ); 设置为 3 即代表 OP 可以使用多人游戏作弊指令 (例如 ```/ban``` ); 设置为 4 即代表 OP 可以使用所有指令,包括 ```/stop```, ```/save-all```, ```/save-on```, ```/save-off``` 等。
85 |
86 | ```pvp=true``` 表示是否允许 PVP,默认为开启。设置为关闭玩家与玩家便无法相互攻击。
87 |
88 | ```level-type=default``` 表示主世界类型,默认为默认。设置为 ```flat``` 即代表超平坦。
89 |
90 | ```hardcore=false``` 表示是否开启极限模式,默认为关闭。开启后当玩家死亡便会被服务器自动封禁。
91 |
92 | ```enable-status=true``` 自 1.16 加入,表示是否在服务器列表中显示为在线,默认为开启。关闭后客户端的服务器列表中将将此服务器显示为**离线**,但玩家仍可连接到服务器。
93 |
94 | ```enable-command-block=false``` 表示是否启用命令方块,默认为关闭。开启后才能够使用命令方块。
95 |
96 | ```max-players=20``` 表示最大玩家数,默认为 20。表示了该服务器能够容纳的同时在线玩家数。
97 |
98 | ```resource-pack=``` 表示资源包地址,默认为空。在此处填写直链[^61]后玩家进服便可以选择是否安装资源包。
99 |
100 | ```server-port=25565``` 表示服务器端口号,默认为 25565。
101 |
102 | ```allow-flight=false``` 表示是否允许玩家飞行,默认为关闭。开启后服务端自带的反作弊系统将不会拦截并踢出使用飞行作弊的玩家[^62]。
103 |
104 | ```view-distance=10``` 表示服务器最大视距,默认为 10,允许的值为3-32。
105 |
106 | ```level-seed=``` 表示地图种子号,默认为空。
107 |
108 | ```prevent-proxy-connections=false``` 表示是否阻止代理连接,默认为关闭。开启后服务端将会尽可能的禁止被判定为使用代理的连接。
109 |
110 | ```motd=A Minecraft Server``` 表示服务器标语,默认为 ```A Minecraft Server``` 。代表了玩家在多人游戏列表上看到的服务器标语,您可以使用 ```\u00A7``` 表示分节符表示创建颜色代码,使用\n表示换行。
111 |
112 | ```white-list=false``` 表示是否启用白名单,默认为关闭。开启后只有在服务器白名单内的玩家才能进入服务器,您可通过 ```/whitelist``` 指令管理您的白名单。
113 |
114 | ```enforce-whitelist=false``` 表示是否强制踢出非白名单玩家,默认为关闭。开启后当你在服务器运行中通过 ```/whitelist on``` 指令手动开启白名单后,未处于白名单内的在线玩家将会被踢出。
115 |
116 |
117 |
118 | 有关 server.properties 的更多信息请见https://minecraft.gamepedia.com/Server.properties
119 |
120 | ::: details 注释 20
121 | [^53]: 边长的计算公式为 2x+1,如设置为1则代表将会以出生点为中心3x3 边长的出生点
122 | [^54]: 某些插件可能会通过让你右键/左键某个方块触发特定的行为,比如右键木牌加入起床战争小游戏,当这样的方块位于出生点保护半径内时,行为将不会被触发
123 | [^55]: 此项目在 Windows 操作系统上默认为开启
124 | [^56]: Mojang 代码力太弱了就是调不好异步区块读写
125 | [^57]: 在 1.12.2-版本中,这项设置的默认值为 0,代表生存模式。而```1```,```2```,```3```分别代表创造模式,冒险模式,观察模式
126 | [^58]: 在 1.12.2-版本中,这项设置的默认值为 1,代表简单,而 0,2,3 分别代表和平,简单,困难
127 | [^59]: 只代表不会自然生成怪物,刷怪笼依然能生成怪物
128 | [^60]: 您可以前往 ops.json 手动指定这些 OP 的权限等级
129 | [^61]: 指一个直接指向资源包文件,能够直接下载的网络地址,例如```https://www.excample.com/resourcepack.zip```
130 | [^62]: 笔者建议服主们开启这一项,因为这个自带的反飞行在笔者的服务器中从来没有拦截过一次开飞行作弊的人,倒是用飞行背包的几个玩家被服务端认定为飞行给踢出去了
131 | :::
132 |
133 | ## on ```bukkit.yml``` [^63]
134 |
135 | ```yaml
136 | # This is the main configuration file for Bukkit.
137 | # As you can see, there's actually not that much to configure without any plugins.
138 | # For a reference for any variable inside this file, check out the Bukkit Wiki at
139 | # https://www.spigotmc.org/go/bukkit-yml
140 | #
141 | # If you need help on this file, feel free to join us on irc or leave a message
142 | # on the forums asking for advice.
143 | #
144 | # IRC: #spigot @ irc.spi.gt
145 | # (If this means nothing to you, just go to https://www.spigotmc.org/go/irc )
146 | # Forums: https://www.spigotmc.org/
147 | # Bug tracker: https://www.spigotmc.org/go/bugs
148 |
149 |
150 | settings:
151 | allow-end: true
152 | warn-on-overload: true
153 | permissions-file: permissions.yml
154 | update-folder: update
155 | plugin-profiling: false
156 | connection-throttle: 4000
157 | query-plugins: true
158 | deprecated-verbose: default
159 | shutdown-message: Server closed
160 | minimum-api: none
161 | spawn-limits:
162 | monsters: 70
163 | animals: 10
164 | water-animals: 15
165 | water-ambient: 20
166 | ambient: 15
167 | chunk-gc:
168 | period-in-ticks: 600
169 | ticks-per:
170 | animal-spawns: 400
171 | monster-spawns: 1
172 | water-spawns: 1
173 | water-ambient-spawns: 1
174 | ambient-spawns: 1
175 | autosave: 6000
176 | aliases: now-in-commands.yml
177 |
178 | ```
179 |
180 | ```allow-end: true``` 表示是否生成末地,默认为开启。关闭后末地世界将不会被生成和加载,玩家也不能进入末地。
181 |
182 | ```warn-on-overload: true``` 表示是否提示服务器过载,默认为开启。
183 |
184 | ```spawn-limits:``` 表示每个世界能够生成的最大生物多少。下方分别表示了怪物,动物,水生动物,水生环境生物和环境生物的最大自然生成数。
185 |
186 | ```ticks-per:``` 表示每多少Tick[^64]能够生成一个生物。除和上方相同的项目外,```autosave```代表了地图自动保存的时间。
187 |
188 |
189 |
190 | 有关 ```bukkit.yml``` 的更多信息请见 [Bukkit.yml - Official BukkitWiki](https://bukkit.gamepedia.com/Bukkit.yml) [^65]。
191 |
192 | ::: details 注释 21
193 | [^63]: 此处使用了一种和上面的 ```server.properties``` 完全不同的文件格式,名为 ```YAML```, 文件名一般以 ```.yml``` 结尾。在 Bukkit 系服务端中,我们会经常见到此种文件格式,因此,您需要熟悉这种文件格式以编辑更多的文件。
194 | [^64]: Minecraft以滴答 (tick) 为服务器计时,一般情况下,1 tick 等于 1/20 秒,当服务器 TPS 下降时,这一秒数将可能变大。
195 | [^65]: 此处的信息可能极度滞后,请辨别查看。
196 | :::
197 |
198 | ## on ```spigot.yml```
199 |
200 | ```yaml
201 | # This is the main configuration file for Spigot.
202 | # As you can see, there's tons to configure. Some options may impact gameplay, so use
203 | # with caution, and make sure you know what each option does before configuring.
204 | # For a reference for any variable inside this file, check out the Spigot wiki at
205 | # http://www.spigotmc.org/wiki/spigot-configuration/
206 | #
207 | # If you need help with the configuration or have any questions related to Spigot,
208 | # join us at the IRC or drop by our forums and leave a post.
209 | #
210 | # IRC: #spigot @ irc.spi.gt ( http://www.spigotmc.org/pages/irc/ )
211 | # Forums: http://www.spigotmc.org/
212 |
213 | config-version: 12
214 | settings:
215 | debug: false
216 | save-user-cache-on-stop-only: false
217 | moved-wrongly-threshold: 0.0625
218 | log-villager-deaths: true
219 | bungeecord: false
220 | timeout-time: 60
221 | restart-on-crash: true
222 | restart-script: ./start.sh
223 | moved-too-quickly-multiplier: 10.0
224 | sample-count: 12
225 | player-shuffle: 0
226 | user-cache-size: 1000
227 | netty-threads: 4
228 | attribute:
229 | maxHealth:
230 | max: 2048.0
231 | movementSpeed:
232 | max: 2048.0
233 | attackDamage:
234 | max: 2048.0
235 | messages:
236 | whitelist: You are not whitelisted on this server!
237 | unknown-command: Unknown command. Type "/help" for help.
238 | server-full: The server is full!
239 | outdated-client: Outdated client! Please use {0}
240 | outdated-server: Outdated server! I'm still on {0}
241 | restart: Server is restarting
242 | commands:
243 | silent-commandblock-console: false
244 | log: true
245 | tab-complete: 0
246 | send-namespaced: true
247 | spam-exclusions:
248 | - /skill
249 | replace-commands:
250 | - setblock
251 | - summon
252 | - testforblock
253 | - tellraw
254 | advancements:
255 | disable-saving: false
256 | disabled:
257 | - minecraft:story/disabled
258 | stats:
259 | disable-saving: false
260 | forced-stats: {}
261 | world-settings:
262 | default:
263 | verbose: true
264 | enable-zombie-pigmen-portal-spawns: true
265 | item-despawn-rate: 6000
266 | view-distance: default
267 | wither-spawn-sound-radius: 0
268 | hanging-tick-frequency: 100
269 | end-portal-sound-radius: 0
270 | arrow-despawn-rate: 1200
271 | trident-despawn-rate: 1200
272 | zombie-aggressive-towards-villager: true
273 | nerf-spawner-mobs: false
274 | dragon-death-sound-radius: 0
275 | seed-village: 10387312
276 | seed-desert: 14357617
277 | seed-igloo: 14357618
278 | seed-jungle: 14357619
279 | seed-swamp: 14357620
280 | seed-monument: 10387313
281 | seed-shipwreck: 165745295
282 | seed-ocean: 14357621
283 | seed-outpost: 165745296
284 | seed-endcity: 10387313
285 | seed-slime: 987234911
286 | seed-bastion: 30084232
287 | seed-fortress: 30084232
288 | seed-mansion: 10387319
289 | seed-fossil: 14357921
290 | seed-portal: 34222645
291 | mob-spawn-range: 6
292 | max-tnt-per-tick: 100
293 | hopper-amount: 1
294 | entity-tracking-range:
295 | players: 48
296 | animals: 48
297 | monsters: 48
298 | misc: 32
299 | other: 64
300 | merge-radius:
301 | item: 2.5
302 | exp: 3.0
303 | growth:
304 | cactus-modifier: 100
305 | cane-modifier: 100
306 | melon-modifier: 100
307 | mushroom-modifier: 100
308 | pumpkin-modifier: 100
309 | sapling-modifier: 100
310 | beetroot-modifier: 100
311 | carrot-modifier: 100
312 | potato-modifier: 100
313 | wheat-modifier: 100
314 | netherwart-modifier: 100
315 | vine-modifier: 100
316 | cocoa-modifier: 100
317 | bamboo-modifier: 100
318 | sweetberry-modifier: 100
319 | kelp-modifier: 100
320 | entity-activation-range:
321 | animals: 32
322 | monsters: 32
323 | raiders: 48
324 | misc: 16
325 | tick-inactive-villagers: true
326 | hunger:
327 | jump-walk-exhaustion: 0.05
328 | jump-sprint-exhaustion: 0.2
329 | combat-exhaustion: 0.1
330 | regen-exhaustion: 6.0
331 | swim-multiplier: 0.01
332 | sprint-multiplier: 0.1
333 | other-multiplier: 0.0
334 | max-tick-time:
335 | tile: 50
336 | entity: 50
337 | squid-spawn-range:
338 | min: 45.0
339 | ticks-per:
340 | hopper-transfer: 8
341 | hopper-check: 1
342 |
343 | ```
344 |
345 | ```spigot.yml``` 中与 ```bukkit.yml``` 可能会有部分选项有所冲突,此时请以 ```spigot.yml``` 为准
346 |
347 | 有关 spigot.yml 的更多信息请见 [Spigot Configuration](https://www.spigotmc.org/wiki/spigot-configuration/).
348 |
349 | ## For Sponge
350 |
351 | SpongePowered 团队为 Sponge 提供了非常详细的入门教程和配置文件示意,且文档支持简体中文,您可以直接前往SpongePowered 的 [Sponge Documentation](https://docs.spongepowered.org/stable/zh-CN/)了解更多 Sponge 的入门知识。
352 |
353 | 至此,你已经完成第三节的所有学习,并应已掌握部分服务端的配置。
354 |
--------------------------------------------------------------------------------
/guide/n4.md:
--------------------------------------------------------------------------------
1 | # 四、插件和模组的下载与使用
2 |
3 | ## 对于 Bukkit 系服务端
4 |
5 | ### 下载插件
6 |
7 | 您可前往以下网站获取兼容Bukkit系服务端的插件
8 |
9 | 1. [BukkitDev](https://dev.bukkit.org/bukkit-plugins)(英文) ——Bukkit 论坛下属的一个插件发布平台,很多老牌 Bukkit 插件都在此处发布
10 |
11 | 2. [SpigotMC Forum](https://www.spigotmc.org/resources/)(英文)——SpigotMC 团队管理的论坛,现在大部分 Bukkit 插件都在此处发布
12 | 3. [PaperMC Forum](https://papermc.io/forums/c/plugin-releases/paper)(英文)——PaperMC 团队管理的论坛,一小部分只兼容 PaperAPI 的插件会在此处发布
13 |
14 | 4. [MCBBS](https://www.mcbbs.net/forum-servermod-1.html)(中文)——国内著名 MC 交流论坛,拥有一部分优秀的国人原创插件和搬运自国外的插件
15 |
16 | ### 安装插件
17 |
18 | 将您下载到的以`.jar`结尾的插件放入`.\plugins`文件夹,重启服务器后即可加载。届时,您可通过输入`/plugins`指令查看插件安装状态。您可前往`.\plugins\插件名称`文件夹查看插件提供的配置文件(如果有)。
19 |
20 | ## 对于Sponge系服务端
21 |
22 | ### 下载插件
23 |
24 | 您可前往以下网站获取兼容Sponge系服务端的插件
25 |
26 | 1. [SpongePowered Ore](https://ore.spongepowered.org/)(英文)——SpongePowered 团队管理的一个插件发布平台,几乎所有的 Sponge 插件都会在此平台发布
27 |
28 | 2. [MCBBS](https://www.mcbbs.net/forum-servermod-1.html)(中文)——国内著名 MC 交流论坛,拥有一部分优秀的国人原创插件和搬运自国外的插件。对于 Sponge,您可在服务端插件版中部的筛选栏中仅选择`Sponge`以过滤掉其他类型的插件
29 |
30 | ### 安装插件
31 |
32 | Sponge 对插件兼容有严格的要求,请务必确保您的 Sponge 插件兼容您的 Sponge 服务端兼容的插件API版本(这些版本会在SpongePowered Ore上有显著声明,如`API7`,请在下载 Sponge 服务端时注意该服务端支持的 API 版本)
33 |
34 | 将您下载到的以`.jar`结尾的插件放入`.\mods文件夹,重启服务器后即可加载。届时,您可通过输入`/sponge plugins`指令查看插件安装状态。您可前往`.\config\插件名称`文件夹查看插件提供的配置文件(如果有)。
35 |
36 | ## 对于搭载了 ForgeAPI 或是 FabricAPI 的模组服务端
37 |
38 | ### 下载模组
39 |
40 | 您可前往以下网站获取兼容 ForgeAPI 或是 FabricAPI 的 Mod
41 |
42 | 1. [CurseForge](https://www.curseforge.com/minecraft/modpacks)(英文)——国外著名游戏 Mods 和 Addons 发布平台,几乎所有模组都会在此平台发布
43 | 2. [MC百科](https://www.mcmod.cn)(中文)——国内著名 Mod 百科,包含了详细的 Mod 介绍
44 |
45 | ### 安装模组
46 |
47 | 将您下载到的以`.jar`结尾的插件放入`.\mods文件夹,重启服务器后即可加载。您可前往`.\config`文件夹查看模组提供的配置文件(如果有)。
48 |
49 | 至此,你已经完成第四节的所有学习,并应已学会安装插件或模组。
--------------------------------------------------------------------------------
/guide/nx.md:
--------------------------------------------------------------------------------
1 | # X、一个真正的服主应该怎样定位错误
2 |
3 | 请记住一句话:**有报错看报错没报错先二分法确定问题**
4 |
5 | 待更新
6 |
7 |
--------------------------------------------------------------------------------