Code Monkey home page Code Monkey logo

Comments (5)

barneygale avatar barneygale commented on July 28, 2024

Hi. This should already be possible.

To receive a message, hook the 'plugin_message' packet:

    def packet_plugin_message(self, buff):
        p_channel_name = buff.unpack_string()
        p_channel_data = buff.read()
        # do something with the message

To send a message:

self.send_packet(
    "plugin_message",
    self.buff_type.pack_string("yourchannelname") + b"yourchanneldata")

Does that work for you?

from quarry.

aaps avatar aaps commented on July 28, 2024

Hey Barney

Oh yeah that works, but it will only send a package to register, so that it has a channel number to send to.
Like the number packet_upstream_player_position usses to get noticed.
So i will get the register data bug nog the data that gos over that channel.

I might be wrong but i think that is the gist of it

Greetings !

from quarry.

barneygale avatar barneygale commented on July 28, 2024

I don't know much about plugin channels, but perhaps you have to acknowledge the registration? Quarry doesn't do any handling of plugin channels - you'll need to build that yourself.

from quarry.

aaps avatar aaps commented on July 28, 2024

Well, im kanda bussy with my own thing like seperating the nether chunks end chunks and overworld chunks, but when i need it i will get to it !

from quarry.

barneygale avatar barneygale commented on July 28, 2024

Nice one. Log an issue if you come across any bugs.

from quarry.

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.