متوجه شدم که شما یک سرور SMP دارید. چگونه میتوانم در این زمینه به شما کمک کنم؟ آیا سوال خاصی درباره تنظیمات، مدیریت یا بهینهسازی سرور SMP دارید؟
User
SMP ماینکرفت
Assistant
متشکرم که توضیح دادید! یعنی شما یک سرور SMP (Survival Multiplayer) ماینکرفت دارید. چطور میتونم به شما کمک کنم؟ آیا درباره نصب، تنظیمات، مدیریت پلاگینها، بهینهسازی سرور یا چیز خاصی سوال دارید؟
User
نسخه سرور من 1.21.4 است
Assistant
خیلی خوب! نسخه سرور 1.21.4 برای ماینکرفت جدید و پایدار است.
اگر در مورد موارد زیر نیاز به کمک دارید، بفرمایید:
نصب و راهاندازی سرور
انتخاب یا نصب پلاگینها (مثلاً اگر از Bukkit, Spigot, یا Paper استفاده میکنید)
تنظیمات بهینهسازی برای بهتر شدن عملکرد سرور
مدیریت بازیکنان و پرمیشنها
بکاپگیری و حفظ امنیت سرور
کدام یک از این موارد یا موضوعات دیگر مد نظرتان هست؟
User
از paper استفاده میکنم
Assistant
عالیه! استفاده از Paper برای سرور ماینکرفت خیلی خوبه چون عملکرد بهتری نسبت به نسخهی اصلی (Vanilla) داره و امکانات بیشتری برای تنظیم و بهینهسازی فراهم میکنه.
اگر بخواهید، میتونم به شما کمک کنم در موارد زیر:
دانلود و نصب Paper 1.21.4
تنظیمات فایل paper.yml و سایر تنظیمات مهم
نصب و مدیریت پلاگینهای محبوب روی Paper
نکات بهینهسازی عملکرد و منابع سرور
حل مشکلات رایج در سرورهای Paper
چه چیزی بیشتر برای شما مهمه یا دوست دارید از کجا شروع کنیم؟
User
چگونه بقیه بتوانند با همه ی نسخه ها بیایند؟
Assistant
در ماینکرفت، سرورهای Java Edition معمولاً محدود به نسخه مشخصی هستند و نمیتوان به طور مستقیم کاری کرد که بازیکنان با هر نسخه (مثلاً 1.18، 1.20، 1.21) بتوانند به یک سرور 1.21.4 وصل شوند.
اما چند راهکار وجود دارد که میتواند به شما کمک کند تا بازیکنان با نسخههای مختلف بتوانند روی سرور شما بازی کنند:
۱. استفاده از پلاگین ViaVersion (و پلاگینهای مرتبط)
ViaVersion یک پلاگین محبوب برای سرورهای Spigot/Paper است که به بازیکنان اجازه میدهد با نسخههای قدیمیتر کلاینت (مثلاً 1.19، 1.20) بتوانند به سرور شما که نسخه 1.21.4 دارد متصل شوند.
همچنین پلاگینهای ViaBackwards و ViaRewind وجود دارند که بازیکنان با نسخههای قدیمیتر را بهتر پشتیبانی میکنند.
فایل .jar را در پوشه plugins سرور Paper خود قرار دهید.
سرور را ریستارت کنید تا پلاگین اجرا شود.
۲. محدودیتها و نکات مهم
ViaVersion معمولاً اجازه میدهد بازیکنان با نسخههای کمی قدیمیتر (مثلاً 1.20، 1.19) به نسخه جدید متصل شوند. اما به بازیکنان نسخههای خیلی قدیمی مثلاً 1.12 یا 1.8 معمولا اجازه وصل شدن نمیدهد.
برخی قابلیتهای نسخههای جدید روی کلاینتهای قدیمیتر ممکن است به درستی کار نکنند یا باگهایی ظاهر شود.
بهتر است بهروزرسانی به نسخههای نسبتا نزدیک سرور باشد تا تجربه بازی با کیفیت باقی بماند.
۳. اگر بخواهید به کاربران نسخههای خیلی قدیمی هم اجازه دهید
میتوانید از سرور BungeeCord یا Waterfall استفاده کنید و تعدادی سرور جداگانه با نسخههای مختلف راهاندازی کنید، بازیکنان وقتی وصل میشوند به سرور مخصوص نسخهشان دریافت و منتقل شوند.
اگر میخواهید، من میتوانم دقیقتر در مورد نصب و تنظیم ViaVersion برای نسخه 1.21.4 راهنمایی کنم. آیا تمایل دارید؟
User
via version
Assistant
بله، برای اینکه بازیکنان با نسخههای مختلف (مثلاً 1.19، 1.20 و…) بتوانند به سرور Paper نسخه 1.21.4 شما متصل شوند، استفاده از پلاگین ViaVersion بهترین گزینه است.
نسخه مناسب (جدیدترین ورژن سازگار با 1.21.4) را دانلود کنید.
۲. قرار دادن پلاگین در پوشه پلاگینها
فایل ViaVersion.jar را در فولدر plugins پوشه سرور Paper خود قرار دهید.
۳. ریستارت سرور
سرور را با دستور ./start.sh یا هر طریق معمول خودتان ریستارت کنید.
پلاگین در هنگام شروع سرور بارگذاری میشود.
۴. تنظیمات اولیه (اختیاری)
به پوشهی plugins/ViaVersion بروید، فایل config.yml را باز کنید.
میتوانید تنظیمات دلخواه مانند اجازه/ممانعت از نسخههای خاص، پیغامها و ... را سفارشی کنید.
پلاگینهای مکمل (در صورت نیاز)
ViaBackwards: برای پشتیبانی بهتر از نسخههای قدیمیتر (مثلاً بازیکنان 1.18 یا قبلتر)
ViaRewind: برای پشتیبانی از نسخههای بسیار قدیمی مانند 1.7.10 و 1.8 (نادر و پیچیدهتر)
نکته مهم
ViaVersion نسخههای قدیمیتر (مثلاً کلاینت 1.20 یا 1.19) را به نسخه سرور (1.21.4) translate میکند، اما قابلیتهای تغییر کرده آن نسخههای جدید ممکن است برای بازیکنان نسخه قدیمی کاملاً در دسترس نباشد.
بازیکنان نسخههای خیلی قدیمی مانند 1.12 یا پایینتر معمولاً به خاطر تغییرات زیاد در پروتکل نمیتوانند وصل شوند مگر با پلاگینهای مکمل و تنظیمات خاص.
اگر دوست دارید، میتوانم به شما در تنظیمات عمیقتر ViaVersion، نصب پلاگینهای مکمل، یا حل مشکلات احتمالی کمک کنم.
آیا میخواهید راهنمایی بیشتری بدهم؟
User
viaversion را نصب کردم ولی نشد
Assistant
اگر ViaVersion را نصب کردید ولی بازیکنان با نسخههای مختلف نتوانستند وصل شوند، ممکن است چند مورد را بررسی کنیم تا مشکل را حل کنیم.
نکات مهم برای عیبیابی و رفع مشکل ViaVersion روی Paper 1.21.4
1. نسخه صحیح ViaVersion
مطمئن شوید نسخه ViaVersion که دانلود کردید مناسب با نسخه سرور شما (1.21.4) باشد. اگر نسخه قدیمی است ممکن است با 1.21.4 سازگار نباشد.
THIS FEATURE IS DISABLED ON 1.17.1+ PAPER SERVERS, SINCE IT HAS A BETTER PACKET-LIMITER INBUILT
Packets Per Second (PPS) limiter (Use -1 on max-pps and tracking-period to disable)
Clients by default send around 20-90 packets per second.
Assistant
از اطلاعاتی که از فایل config.yml پلاگین ViaVersion فرستادید ممنونم. تنظیمات شما به نظر کلی سالم است و مشکلی در آنها دیده نمیشود.
با این حال، چند نکته و مرحله برای رفع مشکل اتصال بازیکنان با نسخههای مختلف به سرور Paper 1.21.4 با ViaVersion وجود دارد که پیشنهاد میکنم آنها را بررسی کنید:
1. فعال کردن پشتیبانی از نسخههای قدیمیتر
در قسمت block-versions و block-protocols این موارد باید خالی باشند (که در تنظیمات شما خالی است) و گزینه زیر را هم داشته باشید:
yaml
allow-older-versions: true
در فایل تنظیمات ViaVersion، این گزینه به صورت مستقیم وجود ندارد اما در ورژنهای اخیر ViaVersion ممکن است این گزینه در فایل config باشد یا نیاز باشد به صورت block-versions محدودیت را نگذارید.
اگر گزینه allow-older-versions در فایل config.yml شما نیست، معمولاً ViaVersion به طور پیشفرض اجازه اتصال نسخههای پایینتر را میدهد اما خوب است از نسخه آخر پلاگین استفاده کنید.
2. استفاده از پلاگینهای مکمل ViaBackwards و ViaRewind
چون شما نسخه سرور 1.21.4 دارید، ViaVersion به تنهایی بازیکنان نسخههای پایینتر مثل 1.20، 1.19 و... را پشتیبانی میکند ولی اگر بازیکنان بخواهند با نسخههای قدیمیتر مثل 1.16 یا 1.8 وصل شوند، نیاز به پلاگینهای مکمل دارید:
Whether to make sure ViaVersion's UserConnection object is already available in the PlayerJoinEvent.
You may disable this for faster startup/join time if you are 100% sure no plugin requires this.
register-userconnections-on-join: true
Should we enable our hologram patch?
If they're in the wrong place, enable this
hologram-patch: false
This is the offset, should work as default when enabled.
hologram-y: -0.96
Should we disable piston animation for 1.11/1.11.1 clients?
In some cases, when firing lots of pistons, it crashes them.
piston-animation-patch: false
Should we fix nbt for 1.12 and above clients in chat messages (causes invalid item)
chat-nbt-fix: true
Experimental - Should we fix shift quick move action for 1.12 clients (causes shift + double click not to work when moving items) (only works on 1.8-1.11.2 bukkit based servers)
quick-move-action-fix: false
Should we use prefix for team color on 1.13 and above clients?
team-colour-fix: true
1.13 introduced new auto complete which can trigger "Kicked for spamming" for servers older than 1.13, the following option will disable it completely.
disable-1_13-auto-complete: false
The following option will delay the tab complete request in x ticks if greater than 0, if other tab-complete is received, the previous is cancelled
1_13-tab-complete-delay: 0
For 1.13 clients the smallest (1 layer) snow doesn't have collisions, this will send these as 2 snowlayers for 1.13+ clients to prevent them bugging through them
fix-low-snow-collision: false
Infested blocks are instantly breakable for 1.13+ clients, resulting in them being unable to break them on sub 1.13 servers. This remaps them to their normal stone variants
fix-infested-block-breaking: true
In 1.14 the client page limit has been upped to 100 (from 50). Some anti-exploit plugins ban when clients go higher than 50. This option cuts edited books to 50 pages.
truncate-1_14-books: false
This prevents clients using 1.9-1.13 on 1.8 servers from receiving no knockback/having velocity bugs whilst sneaking under a block.
change-1_9-hitbox: false
Similar to the above, but for 1.14+ players on 1.8-1.13 servers.
WARNING: This gives 1.14+ players the ability to sneak under blocks, that players under that version cannot (sneaking in places that are only 1.5 blocks high)!
Another thing to remember is that those players might be missed by projectiles and other hits directed at the very top of their head whilst sneaking.
change-1_14-hitbox: false
Fixes 1.14+ clients on sub 1.14 servers having a light value of 0 for non-full blocks.
fix-non-full-blocklight: true
Fixes walk animation not shown when health is set to Float.NaN
fix-1_14-health-nan: true
Should 1.15+ clients respawn instantly / without showing a death screen?
use-1_15-instant-respawn: false
Enable serverside block-connections for 1.13+ clients - all the options in this section are built around this option
serverside-blockconnections: true
Sets the method for the block connections (world for highly experimental (USE AT OWN RISK) world-level or packet for packet-level)
blockconnection-method: packet
When activated, only the most important blocks are stored in the blockstorage. (fences, glass panes etc. won't connect to solid blocks)
reduce-blockstorage-memory: false
When activated with serverside-blockconnections, flower parts with blocks above will be sent as stems
Useful for lobbyservers where users can't build and those stems are used decoratively
flowerstem-when-block-above: false
Vines that are not connected to blocks will be mapped to air, else 1.13+ would still be able to climb up on them.
vine-climb-fix: false
Ignores incoming plugin channel messages of 1.16+ clients with channel names longer than 32 characters.
CraftBukkit had this limit hardcoded until 1.16, so we have to assume any server/proxy might have this arbitrary check present.
ignore-long-1_16-channel-names: true
Force 1.17+ client to accept the server resource pack; they will automatically disconnect if they decline.
forced-use-1_17-resource-pack: false
The message to be displayed at the prompt when the 1.17+ client receives the server resource pack.
resource-pack-1_17-prompt: ''
Caches light until chunks are unloaded to allow later chunk update packets as opposed to instantly uncaching when the first chunk data is sent.
Only disable this if you know what you are doing.
cache-1_17-light: true
Force-update 1.19.4+ player's inventory when they try to swap armor in a pre-occupied slot.
armor-toggle-fix: true
Get the world names which should be returned for each vanilla dimension
If disabled, tamed cats will be displayed as ocelots to 1.14+ clients on 1.13 servers. Otherwise, ocelots (tamed and untamed) will be displayed as cats.
translate-ocelot-to-cat: false
Determines the value sent to 1.19+ clients on join if currently not accessible by ViaVersion.
It is not recommended to fake this value if your server is running 1.19 or later, as 1.20.5 have stricter chat handling and may get kicked otherwise.
enforce-secure-chat: false
Handles items with invalid count values (higher than max stack size) on 1.20.3 servers.
handle-invalid-item-count: false
Hides scoreboard numbers for 1.20.3+ clients on older server versions.
hide-scoreboard-numbers: false
Fixes 1.21+ clients on 1.20.5 servers placing water/lava buckets at the wrong location when moving fast, NOTE: This may cause issues with anti-cheat plugins.
No collide options, these allow you to configure how collision works.
Do you want us to prevent collision?
prevent-collision: true
If the above is true, should we automatically team players until you do?
auto-team: true
When enabled if certain entity data can't be read, we won't tell you about it
suppress-metadata-errors: false
When enabled, 1.9+ will be able to block by using shields
shield-blocking: true
If this setting is active, the main hand is used instead of the off-hand to trigger the blocking of the player.
With the main hand, the blocking starts way faster.
(Requires "show-shield-when-sword-in-hand" to be disabled)
no-delay-shield-blocking: false
If this setting is active, the shield will appear immediately for 1.9+ when you hold a sword in your main hand.
The shield disappears when you switch to another item.
(Requires "shield-blocking" to be enabled)
show-shield-when-sword-in-hand: false
Enable player tick simulation, this fixes eating, drinking, nether portals.
simulate-pt: true
Should we use nms player to simulate packets, (may fix anti-cheat issues)
nms-player-ticking: true
Should we patch boss bars so they work? (Default: true, disable if you're having issues)
bossbar-patch: true
If your boss bar flickers on 1.9+, set this to 'true'. It will keep all boss bars on 100% (not recommended)
bossbar-anti-flicker: false
This will show the new effect indicator in the top-right corner for 1.9+ players.
use-new-effect-indicator: true
Show the new death messages for 1.9+ on the death screen
use-new-deathmessages: true
Should we cache our items, this will prevent the server from being lagged out, however, the cost is a constant task caching items
item-cache: true
Should we replace extended pistons to fix 1.10.1 (Only on chunk loading)?
replace-pistons: false
What id should we replace with, default is air. (careful of players getting stuck standing on them)
replacement-piston-id: 0
Fix 1.9+ clients not rendering the far away chunks and improve chunk rendering when moving fast (Increases network usage and decreases client fps slightly)
chunk-border-fix: false
Allows 1.9+ left-handedness (main hand) on 1.8 servers
left-handed-handling: true
Tries to cancel block break/place sounds sent by 1.8 servers to 1.9+ clients to prevent them from playing twice
cancel-block-sounds: true
6. بررسی تنظیمات پروکسی (در صورت استفاده از BungeeCord/Waterfall)
اگر سرور شما بخشی از شبکه BungeeCord یا Waterfall است، باید پلاگین ViaVersion روی سرور proxy هم نصب شود.
جمعبندی سریع عملی:
اطمینان از آخرین ورژن ViaVersion (و نصب ViaBackwards و ViaRewind برای نسخههای خیلی قدیمی).
ریستارت کامل سرور Paper.
غیرفعال کردن پلاگینهای احتمالی که باعث تداخل شوند.
لاگ خطاهای سرور هنگام اتصال بازیکنان را بررسی کنید.
اگر از پروکسی استفاده میکنید، ViaVersion را روی آن هم نصب کنید.
اگر تمایل دارید، من میتوانم به شما کمک کنم که دقیقتر و مرحله به مرحله این موارد را چک کنید. همچنین اگر خطای خاص یا رفتار عجیبی در لاگ سرور دارید، آنجا ارسال کنید تا دقیقتر راهنمایی کنم.