Commit Graph

55 Commits

Author SHA1 Message Date
Snowiiii
216235d706 README: Add Bossbar 2024-11-26 18:36:41 +01:00
Commandcracker
e43e9f4575 Add Cookies (#325)
* COKKIES PROTOCOL

* Update pumpkin-protocol/src/client/config/c_store_cookie.rs

Co-authored-by: DataModel <183248792+DataM0del@users.noreply.github.com>

* Update pumpkin-protocol/src/server/config/s_cookie_response.rs

Co-authored-by: DataModel <183248792+DataM0del@users.noreply.github.com>

* Update pumpkin-protocol/src/server/play/s_cookie_response.rs

Co-authored-by: DataModel <183248792+DataM0del@users.noreply.github.com>

* Add read fn

* Finished

* Add to readme

* remove async

* use payload.len()

* fix payload_length

* fix all

---------

Co-authored-by: DataModel <183248792+DataM0del@users.noreply.github.com>
2024-11-25 23:15:02 +01:00
Snowiiii
c470f94bc3 Fix: https://github.com/Snowiiii/Pumpkin/issues/236 2024-11-06 20:50:52 +01:00
we sell insurance
93c6da993f Implement Query protocol (#218)
* Add query options to config
Added packet data types
Correctly parse a handshake packet
Add tokio to pumpkin protocol for `AsyncReadExt` convenience functions

* Add repr(u8) so that PacketType is a byte

* Respond to handshake correctly

* Allow for proper decoding of status packets and properly handle errors in decoding

* Implement challange tokens and verify with token and address

* Encode Basic status packet
Switch to CString since its better to and null errors higher up the code

* Encode Full status packet

* Add forgotten fields to full status packet

* Correctly respond to query clients when requesting full status

* Return actual address and port of server
Respect config options
Remove uncessary debug derives

* Remove packet type as it is redundant/unnecssary

* Implement basic status request
Refactor code for better error handling

* Update README

* Show players correctly in full status packet

* Store all packets in structs instead of enums
Break up en/decoding for each packet
Reduce client tracking
Get rid of QueryClients struct
Stop storing of magic value and check during decoding
Added tests for all decoding and encoding
Fix all sugestions from @StripedMonkey
2024-11-05 20:07:31 +01:00
Snowiiii
1f8385e890 Add Serverbound Player Input 2024-11-04 22:02:14 +01:00
Snowiiii
21dd9c194c Split PacketError into 2 Structs
Much nicer now
2024-11-01 10:26:07 +01:00
Snowiiii
a6f3b3f748 Clientbound Packets: use ids from JSON 2024-10-27 14:18:18 +01:00
Snowiiii
6fb751accf Update to 1.21.3 2024-10-23 19:41:08 +02:00
Alexander Medvedev
e396399e66 Port to 1.21.2 (#171)
* Update JSON Files to 1.21.2

* Update constants to 1.21.2

* Port c_login_success to 1.21.2

* Fix: damage type

* Overhaul Packet ID system

We now use Packet IDS from enums.

1. This is very very nice for seeing which Packets are already implemented and which not.
2. This lets us easly port to newer Minecraft version, In vanilla there are no Packet ids hardcoded, Packet IDs will be parsed from a enum like this

* Port all Packets to 1.20.2

* Update README badge to 1.20.2

* Change doc for the new packet id system
2024-10-23 14:31:23 +02:00
Snowiiii
c3dcec2dde docs: Add lighting 2024-10-19 20:34:28 +02:00
Snowiiii
2945a6542e Fix: Gamemode messages
Do not send them to target, send them to sender
2024-10-19 10:57:11 +02:00
Snowiiii
9802fdfb4e docs: Velocity works 2024-10-17 00:42:10 +02:00
Snowiiii
15832078af Add: Bungeecord support 2024-10-16 21:51:09 +02:00
Snowiiii
05bcde494e docs: Add RCON
also more grammer fixes
2024-10-16 11:40:29 +02:00
Snowiiii
5de4b808f0 Remove: World Generation from README
I see people thinking Pumpkin does not have Chunk generation when they see that. What i actually meant was that there is no world folder structure saved. Pumpkin has Chunk generation
2024-10-16 09:09:39 +02:00
Snowiiii
e7afc23427 docs: fix some grammer issues 2024-10-15 19:34:40 +02:00
Snowiiii
47f149d154 Support custom authentication servers 2024-10-13 12:15:16 +02:00
David Rush
7505b09a54 Update README.md 2024-10-12 10:47:38 -05:00
Snowiiii
d8220bf49b docs: Overhaul 2024-10-12 17:39:43 +02:00
paul
ac4223f89b expose docker container port 2024-10-08 19:24:33 +02:00
Snowiiii
39b4cb3ac9 Move world into entity
Also fixes most of error when leaving while chunks are loading
2024-09-07 22:39:42 +02:00
Snowiiii
443febefdb Update README.md 2024-08-28 19:04:31 +02:00
Alexander Medvedev
8e9ea66787 README: Change run command
I still like to use target-cpu=native. The problem is that there is no cross platform way to the the env var RUSTFLAGS. I also don't want to have a script for that
2024-08-27 16:17:59 +01:00
Erb3
e6e63c6c1e docs: simple docker instructions 2024-08-21 18:01:25 +02:00
Erb3
09ce32ab45 docs: run formatter 2024-08-20 17:50:28 +02:00
Kolibroid
1a21290e0f Fix some minor typos 2024-08-19 17:52:04 +01:00
Snowiiii
bf92fe22a0 Add Particles 2024-08-16 12:45:58 +02:00
Snowiiii
231bdb5614 World: Add GZip compression 2024-08-16 11:10:16 +02:00
Snowiiii
ceb718d475 Setup Base for Velocity (Proxy) 2024-08-15 15:00:41 +02:00
Snowiiii
333bf64235 README: Add use local CPU features when running 2024-08-15 13:40:34 +02:00
Alexander Medvedev
dbe588576d Update README.md 2024-08-15 08:45:03 +02:00
Alexander Medvedev
f79860aae4 Update README.md 2024-08-14 23:17:46 +02:00
Alexander Medvedev
ccd915a459 README: Add image 2024-08-13 13:31:43 +02:00
lukas0008
1ab05e0c00 Update README.md 2024-08-12 21:23:23 +02:00
Snowiiii
d47fb18465 Fix: build 2024-08-12 15:49:44 +02:00
Snowiiii
414cf3190c Added RCON support 2024-08-10 23:53:32 +02:00
Snowiiii
50dcbfeb6d Add inventory support 2024-08-09 22:38:00 +02:00
Snowiiii
b4abc6b297 Add Packet compression 2024-08-08 16:37:40 +02:00
Alexander Medvedev
0b55a90a38 Update README.md 2024-08-08 14:33:15 +02:00
Snowiiii
fe8cd334e1 Add Chat support 2024-08-08 11:27:09 +02:00
Alexander Medvedev
1076cc69f0 Update README.md 2024-08-07 23:10:57 +02:00
Snowiiii
0cec9bf216 Add Player swing animation 2024-08-07 15:11:35 +02:00
Snowiiii
ea0128c50b Improve Authentication 2024-08-07 13:32:48 +02:00
Snowiiii
eb18873960 Add Player movement 2024-08-06 18:10:03 +02:00
Snowiiii
81f82a41b7 Add CONTRIBUTING.md 2024-08-06 11:01:39 +02:00
Snowiiii
f9319877dd Add CI 2024-08-06 00:02:18 +02:00
Snowiiii
ebda64b2c7 Support Commands in Server Console 2024-08-05 14:00:40 +02:00
Snowiiii
05977223e3 Add Clientbound Player Info Update
Also adds support for Skins!
2024-08-04 18:03:43 +02:00
Snowiiii
41c4d23821 Add Authentication 2024-08-04 15:44:53 +02:00
Alexander Medvedev
31aa333410 Update README.md 2024-08-03 23:37:07 +02:00