
minecraft服務器

If you’ve played Minecraft, then it’s easy to see how much fun it can be. Running your own server lets you bring all of your friends into the same game, and you can play with rules you get to make or break. It’s the ultimate in an already addictive game!
如果您玩過《我的世界》,那么很容易看到它有多有趣。 運行自己的服務器可使您將所有朋友帶入同一個游戲,并且您可以按照自己的成敗規則進行游戲。 這是本已令人上癮的游戲的終極目標!
We’ve already shown you How To Get Started with Minecraft, a Game Geeks Love. What’s better than single player? Multiplayer, of course! You can join one of hundreds of servers at minecraftservers.net to get started, or search around for more exclusive ones, but ultimately you’re bound by their rules and discretion. Running your own server lets you and your friends can play together with your own set of rules, and it’s really easy to do.
我們已經向您展示了Gines Love游戲Minecraft的入門。 有什么比單人游戲更好? 多人游戲,當然! 您可以在minecraftservers.net上加入數百臺服務器中的一臺,以開始使用服務器,也可以搜索更多的專用服務器,但最終您會受其規則和自由裁量權的約束。 運行自己的服務器使您和您的朋友可以一起使用自己的規則,這非常容易做到。
下載并首次運行 (Download and First Run)

Head on over to the Minecraft Download page and go down to the “Multiplater beta server software” section. Windows users can Just download the .exe file and run it.? OS X and Linux users should download the .jar file, then run the server using the following command in Terminal:
轉到Minecraft下載頁面,然后轉到“ Multiplater beta服務器軟件”部分。 Windows用戶可以下載.exe文件并運行它。 OS X和Linux用戶應下載.jar文件,然后在終端中使用以下命令運行服務器:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
If you want to devote more (or less) RAM to your server, change the 1024M to something else, like 2048M. The first number is the maximum amount it can use, and the second number is the minimum. Since everything is in Java, you should have at least a spare gig of RAM to devote to Minecraft. Things can get unruly with a decent amount of people playing, especially when you start to do crazy stuff like blowing up huge caverns with massive amounts of TNT.
如果要為服務器分配更多(或更少)的RAM,請將1024M更改為其他內容,例如2048M。 第一個數字是它可以使用的最大數量,第二個數字是最小的數量。 由于所有內容都是Java語言,因此您至少應有一個備用的RAM用于Minecraft。 大量的玩耍會使事情變得不規則,尤其是當您開始做瘋狂的事情時,例如用大量的TNT炸毀巨大的洞穴。

In the server window, you’ll see the memory and processor thread use on the left, the list of connected players in the lower left, and the log and chat window on the right side. The first time you run the server, you’ll get some errors at first. That’s normal, so don’t panic!
在服務器窗口中,您將在左側看到內存和處理器線程的使用,在左下方看到已連接播放器的列表,并在右側看到日志和聊天窗口。 第一次運行服務器時,首先會出現一些錯誤。 那很正常,所以不要驚慌!

The server didn’t find the configuration files it needs, so it’ll make them. You’ll see some new files come up in the same folder as your server.
服務器找不到所需的配置文件,因此將其創建。 您會看到一些新文件出現在與服務器相同的文件夾中。

There’s the “world” folder, which contains your generated map area, an ops list, and a server.properties file, among other things.
這里有一個“世界”文件夾,其中包含您生成的地圖區域,一個操作列表和一個server.properties文件等。
Once the world is finished generating, you’ll get a little notice about the help file. Close the server, or if you’re running it in Terminal, just type “stop” (without the quotes). We’re going to tweak and we can’t do that while the server’s running.
一旦完成生成,您將獲得有關幫助文件的一點通知。 關閉服務器,或者如果您在終端中運行它,只需鍵入“ stop”(不帶引號)。 我們將進行調整,并且在服務器運行時無法執行此操作。
調整服務器的屬性 (Tweaking the Server’s Properties)
Open up the server.properties file in notepad. You’ll see something like this:
在記事本中打開server.properties文件。 您會看到以下內容:

You’ll see some important options.
您會看到一些重要的選擇。
- level-name: This is the name of your Minecraft world. If you change this name, the server will look for a folder with a matching name, and if none is found, it will generate a new level with this name. level-name:這是您的Minecraft世界的名稱。 如果更改此名稱,則服務器將查找具有匹配名稱的文件夾,如果找不到,則它將使用該名稱生成新級別。
- spawn-monsters: If set to false, monsters such as zombies, skeletons, and creepers will not spawn. Often turned off for “op” or “creative” servers, where everyone builds and survival is not the focus of gameplay. 生成怪物:如果設置為false,則不會生成諸如僵尸,骷髏和爬行者之類的怪物。 通常對于“ op”或“ creative”服務器關閉,因為每個人都在這里建造,生存并不是游戲的重點。
- spawn-animals: If set to false, animals such as wolves, cows, sheep, and chickens will not spawn. spawn-animals:如果設置為false,則不會生成諸如狼,牛,綿羊和雞等動物。
- pvp: If set to false, players will not be able to harm one another, although you can still inflict damage by pushing other players off of ledges. pvp:如果設置為false,玩家將無法互相傷害,盡管您仍然可以通過將其他玩家推離壁架來造成傷害。
- white-list: If set to true, the server will only allows the usernames in the “white-list.txt” file to successfully connect and play. 白名單:如果設置為true,則服務器將僅允許“ white-list.txt”文件中的用戶名成功連接并播放。
For a complete description of all of the options, check out the Minecraft Wiki’s page on server.properties. Once you’re done changing things to what you want, save the file.
有關所有選項的完整說明,請查看server.properties上的Minecraft Wiki頁面。 完成將內容更改為所需內容后,保存文件。
Since it’s your server, be sure to add your Minecraft username in the “ops.txt” file. That way, you’ll be an “operator” with full admin rights. You can generate any item you want, ban players, make other players ops, and change the in-game time.
由于它是您的服務器,因此請確保在“ ops.txt”文件中添加您的Minecraft用戶名。 這樣,您將成為具有完全管理員權限的“操作員”。 您可以生成所需的任何物品,禁止玩家,進行其他玩家操作并更改游戲時間。
In order for your friends to connect to your server you’ll have to configure port forwarding on your router. The default port is 25565, but this can be changed in the server.properties file. Your friends will need your IP address (or DNS alias/redirect) and this port number so that they can connect.
為了讓您的朋友連接到您的服務器,您必須在路由器上配置端口轉發。 缺省端口為25565,但是可以在server.properties文件中更改此端口。 您的朋友將需要您的IP地址(或DNS別名/重定向)和此端口號,以便他們可以連接。
When you’re ready, start up the server again.
準備就緒后,再次啟動服務器。
在服務器上播放 (Playing On a Server)

When you start Minecraft, you’re given the option of connecting to a multiplayer server. Clicking on it will allow you to enter its address information.
啟動Minecraft時,可以選擇連接到多人服務器。 單擊它將允許您輸入其地址信息。

If you’re playing on the same computer as your server, you can just type “localhost” (without the quotes). Otherwise, plug in your server’s IP address or domain name. Click connect, and you’ll join the server.
如果您與服務器使用的是同一臺計算機,則只需鍵入“ localhost”(不帶引號)即可。 否則,請插入服務器的IP地址或域名。 單擊“連接”,您將加入服務器。
Hit T to bring up the chat console.
按T調出聊天控制臺。

You’ll see all of the public messages by users, system messages, and commands that you’ve executed. Notice the little prompt (>) in the lower left corner. Typing something and hitting Enter will send a message to all other players in a group chat. You can execute commands here, too, and they always start with a forward slash (/).
您將按用戶,系統消息和已執行的命令查看所有公共消息。 請注意左下角的小提示(>)。 鍵入內容并按Enter,將在群聊中向所有其他玩家發送消息。 您也可以在此處執行命令,并且它們始終以正斜杠(/)開頭。
As an op, you should be able to type “/list” and hit Enter to list all of the connected players. You can also give items to any player (including yourself), ban and pardon specific users, and change the system time. If you’re unsure of a specific command’s requirement, you can type “/help” to get more info. For the full list of server commands, check out the Minecraft Wiki’s Server Commands page.
作為操作,您應該能夠輸入“ / list”并按Enter列出所有已連接的播放器。 您還可以將物品提供給任何玩家(包括您自己),禁止和赦免特定用戶,以及更改系統時間。 如果不確定特定命令的要求,可以鍵入“ / help”以獲取更多信息。 有關服務器命令的完整列表,請查看Minecraft Wiki的“服務器命令”頁面。
Now go and tell all of your friends to join! There’s nothing that beats building massive structures, exploring the vast landscape, and mining into moutains, except doing it with 8 of your best friends.
現在,告訴所有朋友加入! 除了與您的8個最好的朋友一起做之外,沒有什么比建造大型建筑物,探索廣闊的景觀和挖掘山寨更好的了。
翻譯自: https://www.howtogeek.com/58968/how-to-start-your-own-minecraft-server/
minecraft服務器