Niestandardowe serwery: Różnice pomiędzy wersjami

Z Minecraft Wiki Polska
Przejdź do nawigacji Przejdź do wyszukiwania
[wersja nieprzejrzana][wersja nieprzejrzana]
Krzys h (dyskusja | edycje)
Utworzył nową stronę „{{Odpowiedzialność}} {{Stub}} '''Niestandardowe serwery''' - są to wersje plików serwerowych stworzonych poza Mojang. Istnieją one po to, aby umożliwić w...”
 
Nie podano opisu zmian
Linia 8: Linia 8:
** [[Niestandardowe serwery/MCPC|MCPC]] - Przeróbka Bukkita umożliwiająca wgrywanie [[Modyfikacje|modów]], które w przeciwieństwie do pluginów wymagają również wgrania na cliencie ale dają większe możliwości
** [[Niestandardowe serwery/MCPC|MCPC]] - Przeróbka Bukkita umożliwiająca wgrywanie [[Modyfikacje|modów]], które w przeciwieństwie do pluginów wymagają również wgrania na cliencie ale dają większe możliwości
* [[Niestandardowe serwery/Canary|Canary]]
* [[Niestandardowe serwery/Canary|Canary]]
=== Color codes ===
Custom servers usually take advantage of color codes (sometimes allowing players to input them with a percent instead of an ampersand)<br>
Messages sent from the server to the client can contain color codes, which allow coloring of text for various purposes. An ampersand followed by a hex digit in the message tells the client to switch colors while displaying text.
Color coding at the start of the message will only work if the player ID byte is less than 127. If it's 127 or higher, the game automatically adds &e before the message, making it yellow. However, color codes after the first character still work. If you use an ID below 127, it doesn't add a color code, so the ones you use will work.
It is important to note that an ampersand at the end of a message that is not followed by a hex digit will crash all clients that receive it, so it is a must to sanitize chat messages received from clients.
[[File:Colors.png|thumb|Hex digit to color mapping]]
{| class="wikitable" style="text-align:center;" border="1" cellpadding="5"
|-
! colspan="1"  width="8px"| Kolor Tła
! colspan="1" | Kod
! colspan="1" | Nazwa
! colspan="3" | Foreground
! colspan="3" | Background
|-
| || ||
|width="30px"|R
|width="30px"|G
|width="30px"|B
|width="30px"|R
|width="30px"|G
|width="30px"|B
|-
| bgcolor="black" |
| &0 - %0 || Czarny || 0 || 0 || 0 || 0 || 0 || 0
|-
| bgcolor=#0000BF |
| &1 - %1 || Ciemny niebieski (granatowy) || 0 || 0 || 191 || 0 || 0 || 47
|-
| bgcolor=#00BF00 |
| &2 - %2 || Ciemny zielony || 0 || 191 || 0 || 0 || 47 || 0
|-
| bgcolor=#00BFBF |
| &3 - %3 || Ciemny turkusowy || 0  || 191 || 191 || 0 || 47 || 47
|-
| bgcolor=#BF0000 |
| &4 - %4 || Ciemny czerwony || 191 || 0 || 0 || 47 || 0 || 0
|-
| bgcolor=#BF00BF |
| &5 - %5 || Purpurowy || 191 || 0 || 191 || 47 || 0 || 47
|-
| bgcolor=#BFBF00 |
| &6 - %6 || Złoty || 191 || 191 || 0 || 47 || 47 || 0
|-
| bgcolor=#BFBFBF |
| &7 - %7 || Szary || 191 || 191 || 191 || 47 || 47 || 47
|-
| bgcolor=#404040 |
| &8 - %8 || Ciemno Szary || 64 || 64 || 64 || 16 || 16 || 16
|-
| bgcolor=#4040FF |
| &9 - %9 || Niebieski || 64 || 64 || 255 || 16 || 16 || 63
|-
| bgcolor=#49FF40 |
| &a - %a || Jaskrawy zielony (limonkowy) || 64 || 255 || 64 || 16 || 63 || 16
|-
| bgcolor=#40FFFF |
| &b - %b || Turkusowy || 64 || 255 || 255 || 16 || 63 || 63
|-
| bgcolor=#FF4040 |
| &c - %c || Czerwony || 255 || 64 || 64 || 63 || 16 || 16
|-
| bgcolor=#FF40FF |
| &d - %d || Różowy || 255 || 64 || 255 || 63 || 16 || 63
|-
| bgcolor=#FFFF40 |
| &e - %e || Żółty || 255 || 255 || 64 || 63 || 63 || 16
|-
| bgcolor=#FFFFFF |
| &f - %f || Biały || 255 || 255 || 255 || 63 || 63 || 63
|}

Wersja z 11:18, 23 sty 2013

Treść strony Niestandardowe serwery nie jest wspierana przez Mojang Studios ani Minecraft Wiki. Strona opisuje element stworzony przez społeczność gry.
Artykuł Niestandardowe serwery jest krótki.
Możesz pomóc, poszerzając go.

Niestandardowe serwery - są to wersje plików serwerowych stworzonych poza Mojang. Istnieją one po to, aby umożliwić wgrywanie pluginów urozmaicających rozgrywkę i zabezpieczających serwer przed tzw. grieferami, czyli graczami niszczącymi mapę.

Najpopularniejsze silniki to:

  • Bukkit - najpopularniejszy serwer umożliwiający wgrywanie pluginów
    • MCPC - Przeróbka Bukkita umożliwiająca wgrywanie modów, które w przeciwieństwie do pluginów wymagają również wgrania na cliencie ale dają większe możliwości
  • Canary

Color codes

Custom servers usually take advantage of color codes (sometimes allowing players to input them with a percent instead of an ampersand)
Messages sent from the server to the client can contain color codes, which allow coloring of text for various purposes. An ampersand followed by a hex digit in the message tells the client to switch colors while displaying text.

Color coding at the start of the message will only work if the player ID byte is less than 127. If it's 127 or higher, the game automatically adds &e before the message, making it yellow. However, color codes after the first character still work. If you use an ID below 127, it doesn't add a color code, so the ones you use will work.

It is important to note that an ampersand at the end of a message that is not followed by a hex digit will crash all clients that receive it, so it is a must to sanitize chat messages received from clients.

Plik:Colors.png
Hex digit to color mapping
Kolor Tła Kod Nazwa Foreground Background
R G B R G B
&0 - %0 Czarny 0 0 0 0 0 0
&1 - %1 Ciemny niebieski (granatowy) 0 0 191 0 0 47
&2 - %2 Ciemny zielony 0 191 0 0 47 0
&3 - %3 Ciemny turkusowy 0 191 191 0 47 47
&4 - %4 Ciemny czerwony 191 0 0 47 0 0
&5 - %5 Purpurowy 191 0 191 47 0 47
&6 - %6 Złoty 191 191 0 47 47 0
&7 - %7 Szary 191 191 191 47 47 47
&8 - %8 Ciemno Szary 64 64 64 16 16 16
&9 - %9 Niebieski 64 64 255 16 16 63
&a - %a Jaskrawy zielony (limonkowy) 64 255 64 16 63 16
&b - %b Turkusowy 64 255 255 16 63 63
&c - %c Czerwony 255 64 64 63 16 16
&d - %d Różowy 255 64 255 63 16 63
&e - %e Żółty 255 255 64 63 63 16
&f - %f Biały 255 255 255 63 63 63