Git Product home page Git Product logo

Comments (11)

kierdavis avatar kierdavis commented on July 27, 2024

Unless I'm missing something here, can't you use self.to_client() and
self.to_server() to do that? E.g:

self.to_server({"msgtype": 0x03, "msg": "An artificial chat message"})
On 25 Jan 2013 14:32, "Robin Lambertz" [email protected] wrote:

Make it possible for plugins to send packets (through PacketSenderManager
?). This would make the plugin system way more useful.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11.

from pycraft.

roblabla avatar roblabla commented on July 27, 2024

How would that work ? I don't see the code for it anywhere. Will try.

from pycraft.

roblabla avatar roblabla commented on July 27, 2024

BTW, would like to say that this doesn't work. Any chance this will be looked into ?

from pycraft.

ammaraskar avatar ammaraskar commented on July 27, 2024

ohey, this project. My plan to address this was to create a main plugin class that plugins can inherent methods from which includes a method to get the sender interface

from pycraft.

jibcage avatar jibcage commented on July 27, 2024

So is the client ever going to be able to send packets? I'd really like to code this functionality in but I'm not sure how.

from pycraft.

roblabla avatar roblabla commented on July 27, 2024

jckbigggs, I suggest you just modify the NetworkManager code for now. Plugins support is obviously not complete ^^.

from pycraft.

kierdavis avatar kierdavis commented on July 27, 2024

My apologies, I've just re-read my earlier response and realised I was
talking about a completely different project. Sorry if I have misled you
On 22 Mar 2013 08:41, "Robin Lambertz" [email protected] wrote:

jckbigggs, I suggest you just modify the NetworkManager code for now.
Plugins support is obviously not complete ^^.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-15286181
.

from pycraft.

JeppeKlitgaard avatar JeppeKlitgaard commented on July 27, 2024

Hopefully Ammar won't see this as recruiting/credit-stealing (I don't think he will, from the conversations I've had with him he seems like a very nice person), but may I refer you to my library?

McClientLib _Inspired by Ammars pyCraft_
My version of pyCraft _A version of pyCraft that uses McClientLib, good example of the API_

from pycraft.

roblabla avatar roblabla commented on July 27, 2024

@dkkline ammaraskar is a very nice person indeed ^^.
Anyhow, this looks cool dkkline, not EXACTLY what I'm looking for, but useful regardless.
The thing is, what your library do is allow one to write third-party clients easily. What I'm looking for is the ability to have a third-party in which I can easily add in "additional features" (plugins) that can easily be enabled/disabled. Kind of like how bukkit manages plugins, but for a third-party minecraft client.

from pycraft.

ammaraskar avatar ammaraskar commented on July 27, 2024

@dkkline ❤️
I'm gonna be pulling in stuff from downstream soon. I really do appreciate you rewriting my terrible terrible base. I'd have done it myself if I had the time. You should look into adding in the plugin system, which can essentially wrap around the normal mcclientlib stuff to your pyCraft fork

from pycraft.

ammaraskar avatar ammaraskar commented on July 27, 2024

ayyy, I rewrote the whole project, you can now just do with the Connection class

write_packet(self, packet, force=False)

https://github.com/ammaraskar/pyCraft/blob/master/network/connection.py#L52

from pycraft.

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.