当前位置:网站首页>Minecraft server technology explanation 𞓜 teach you how to get to the ashes from Xiaobai -- server technology explanation

Minecraft server technology explanation 𞓜 teach you how to get to the ashes from Xiaobai -- server technology explanation

2022-06-23 03:20:00 User 1300309

First of all , We need to start a server first

To open the server, we need to finish the server core

What is a core document

JAR(JavaArchive,Java The archive ) It's a platform independent file format , It allows many files to be combined into one compressed file . by J2EE Application created JAR File is EAR file ( Enterprises JAR file ).

JAR The file format is in popular ZIP File format is the basis . And ZIP The difference between documents is ,JAR Files are not only used for compression and distribution , It is also used to deploy and encapsulate Libraries 、 Components and plug-ins , And can be used like compilers and JVM Such tools are used directly . stay JAR Contains special files , Such as manifests And deployment descriptors , Used to indicate how a tool deals with a particular JAR.

One JAR Files can be used for :

□ For publishing and using class libraries  

□ As a building block for applications and extensions  

□ As a component 、applet Or the deployment unit of the plug-in  

□ Used to package auxiliary resources associated with components  

JAR File formats offer many advantages and functions , Many of them are traditional compression formats such as ZIP perhaps TAR What is not provided . They include :

· Security . It can be done to JAR Document content plus digital signature . such , Tools that recognize signatures can optionally grant you software security privileges , This is something that no other document can do , It can also detect if the code has been tampered with .

· Reduce download time . If one applet Bind to a JAR In file , Then the browser can be in a HTTP Download this applet Class files and related resources , Instead of opening a new connection to every file .

· Compress .JAR Format allows you to compress files to improve storage efficiency .

· Transport platform extension .Java Extension framework (JavaExtensionsFramework) Provided to Java How to add functions to the core platform , These extensions are for JAR The files are packed (Java3D and JavaMail Is the Sun Examples of extensions developed ).

· Package seal . Stored in JAR Packages in the file can be optionally sealed , To enhance version consistency and security . Sealing a package means that all classes in the package must be in the same JAR Found in file .

· Package version control . One JAR A file can contain data about the files it contains , Such as manufacturer and version information .

· Portability . Handle JAR The mechanism of the document is Java Platform core API The standard part of .

The role of the core document is the same as that of electrical appliances , You can't turn on the electric appliance without electricity , Without an open server core, you cannot open the server

There are many kinds of core documents ,bukkit,MCBC,Cauldron、ITX( The core of mobile phone service )、Spigot、MCpc、CB And so on

So the core file , I'll give you the download address of

http://pan.baidu.com/s/1mijhF5Y

Because there are too many cores , I uploaded yidididiu

After downloading ,

Create a folder ( Take any name ), Put the downloaded core in this folder

so what

Then right click to create a text , Rename to “xxx.bat” Right click to edit input :

@echooff

:MAIN

cls

java-Xms1024M-Xmx1024M-jar xxx.ja

ifexist"plugins\RestartEvolution\restart.mcs"gotoMAIN

ifnotexist"plugins\RestartEvolution\restart.mcs"gotoEND

:END

echo.

pause>nul

Please change the red area to the name of the downloaded core file

Click on bat After the file is started , A pile of things will be generated in the folder ,

We just need to find

Everybody find server.properties, Open this text ( Suggest using Notepad++ open )

allow-nether=true# Whether the server opens the hell world

level-name=world # Server default map name

allow-flight=false# Players fly

server-port=255565# Server port , Default 25565

level-seed=# Generate the seeds of the map

max-build-height=256# The maximum building distance of the server

spawn-npcs=true# Generate NPC

white-list=false# White list

spawn-animals=true# Generative animal

online-mode=false# Whether to enable genuine login

pvp=true# Open or not PVP

gamemode=0# Default player mode

max-players=100# Server player limit

view-distance=10# Maximum visible distance of the server

motd=AMinecraftServer# Server name ( Only English is supported )

Please restart after the change bat file . Because the configuration will not take effect immediately .

so what , We installed mod Is to be in /mods/ Folder installation

Install plug-ins , It is in /plugins/ Folder installation

1.7.10 Version of , Created bat The first time you open a file, it will only generate a folder and oneortwo files , Now there's a  eula.txt   The file of , open , The inside of false Change to true Talent , Reopen , Will create a pile of files and folders

so what , We installed mod Is to be in /mods/ Folder installation

Install plug-ins , It is in /plugins/ Folder installation

Last

I hope you will support me more author : gather kong https://www.bilibili.com/read/cv1047568/ Source :bilibili

原网站

版权声明
本文为[User 1300309]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/01/202201201950175699.html