Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API docs for making addons are scarce #231

Open
talwat opened this issue May 30, 2024 · 2 comments
Open

API docs for making addons are scarce #231

talwat opened this issue May 30, 2024 · 2 comments

Comments

@talwat
Copy link

talwat commented May 30, 2024

Hi!

I'm making a custom land claim plugin, and I wanted to use the squaremap API to display claims on the map.
Unfortunately, in the wiki, there is only one section about the "basics" that uses a bunch of terminology that isn't really explained.

So, I wanted to ask how I would go about learning the squaremap API and actually making something, despite the limited amount of information. This issue also serves just to ask whether the API docs will eventually be written or not.

@TaggartMaher
Copy link

@talwat Did you ever figure it out? I am also making a plugin and I cannot, for the life of me understand how to use this api.
Chatgpt is tripping giving me something like this
Squaremap squaremap = (Squaremap) getServer().getPluginManager().getPlugin("Squaremap");
WorldIdentifier overworld_identifier = WorldIdentifier.create("minecraft", "overworld");
Optional overworld = squaremap.getWorldIfEnabled(overworld_identifier);
if (overworld.isPresent()) {
Marker marker = Marker.icon(Point.of(55, 55), Icon.rectangle(Point.of(0, 0), Point.of(10, 10))., 10);
}

    i cannot get it to work. Is there any other projects that have got this to work?

@talwat
Copy link
Author

talwat commented Aug 19, 2024

Yeah, eventually, but squaremap is pretty similar to dynmap so as a desperate last attempt I checked the dynmap docs to fill in the gaps & used intellisense to find the right classes. It's all we have for now.

You could also take a look at my project to get an idea of how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants