Comments (3)
Does it work if you don't send the chat packet? If so, it might be the case that you're sending it too early, before the client has fully connected. Take a look at the approach here that waits for the server to spawn you before sending a packet: #62 (comment)
from pycraft.
This script behaved as expected (i.e. the client joined the server, said "test", and disconnected) when I ran it with Spigot 1.12.2, so it does seem like a race condition. You should, indeed, wait until you receive a JoinGamePacket
before sending ChatPacket
or any other play state packets.
from pycraft.
I'm closing this issue for now. Feel free to post further comments if you believe there's more to discuss.
from pycraft.
Related Issues (20)
- How to reconnect to the server? HOT 1
- attempting to write None field (workaround included)
- 1.19 support? HOT 24
- Unable to dig block HOT 3
- 1.18.2 support HOT 1
- disconnect.timeout HOT 1
- Logging in, getting 403 invalid credentials. HOT 2
- We need pyCraft3 HOT 5
- a1.2.6 supported?
- Rooted Roku HOT 4
- Baritone Bot integration? HOT 1
- 1.18.2 support?
- Microsoft authentication failure HOT 2
- Can't import Minecraft from PyCraft?
- 1.19 and 1.20 support ? HOT 2
- 支持1.20.2?
- 1.20. support? HOT 1
- "ModuleNotFoundError: No module named 'mutf8'" HOT 2
- PlayerPositionAndLookPacket
- 1.20.6 porting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycraft.