Giter Site home page Giter Site logo

Comments (3)

TechnicJelle avatar TechnicJelle commented on June 23, 2024 1

I've done a similar architecture in my Offline Player Markers addon, which loops through the playerdata NBT files on server startup to add the markers to the map, and from then on, it uses the server events to add/remove markers.
But even that plugin does not cache them...

Properly adding caching to something like this is very very difficult....
One of the challenges is having to take changes into account properly.

from bluemapsignextractor.

ShDis avatar ShDis commented on June 23, 2024

Is there a way to bind something like "PlayerPlacedSign" and "PlayerEditedSign" events to plugin code for instant updates?

from bluemapsignextractor.

TechnicJelle avatar TechnicJelle commented on June 23, 2024

There is a SignChangeEvent, but no dedicated SignPlacedEvent or SignRemovedEvent.
There is a BlockPlaceEvent that can be used to detect sign placements.
However, detecting sign removals is more difficult, as there are many different ways for a block to be removed. It can be mined by a player, or exploded.
And in the case of signs, the block it's attached to could be removed as well, causing it to pop off. And can signs burn? I'm not sure, but they are made of wood...

from bluemapsignextractor.

Related Issues (16)

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.