Giter Site home page Giter Site logo

Comments (4)

Exceptionflug avatar Exceptionflug commented on August 11, 2024

Hey, the PlayerPosition packet is only sent by the client to update the position on the server. If you want to teleport the player, this packet is the way to go: Teleport Entity 0x6D

Please note that updating the player position from the proxy will result in inconsistency with the backend server's player position.

This packet is also not implemented in protocolize. You have to implement it yourself in your project to use it with protocolize,

from protocolize.

iminlikewithyou avatar iminlikewithyou commented on August 11, 2024

thanks, that helped a bit. i've made a custom packet for Respawn from the server to the client and have specified a mapping
CleanShot 2023-12-06 at 15 08 24@2x

yet, i get an error trying to initialize it?
CleanShot 2023-12-06 at 15 10 18@2x

am i doing something wrong here? :(

from protocolize.

Exceptionflug avatar Exceptionflug commented on August 11, 2024

Hey, in this case the packet is implemented by Velocity (com.velocitypowered.proxy.protocol.packet.Respawn) and you can use this directly in a PacketListener for example. All you have to do is to add the velocity-proxy module to your classpath during compile time. For example by locating a jar file on your drive with system scope.

from protocolize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.