FancyMcPlugins / FancyNpcs

FancyNpcs is a simple, lightweight and fast npc plugin using packets
https://modrinth.com/plugin/fancynpcs
MIT License
102 stars 23 forks source link

FancyNpcs - API #5

Closed Ducki0210 closed 1 year ago

Ducki0210 commented 1 year ago

Hello, I did not try your plugin already, it seems really great and I would like to use it.

However, I did not find any API so I would like to request you to add an API with all the creation, get, ... methods and a PlayerNpcInteractEvent :)

I hope you can make it ASAP ty :D

OliverSchlueter commented 1 year ago

Hey, nice that you are interested in using the plugin. I will add more API to it shortly and keep you updated in this issue

OliverSchlueter commented 1 year ago

@Ducki0210 I have added a buch of API stuff. Check out Documentation.md

If you have questions feel free to ask them here or on discord (Oliver#6538).

Ducki0210 commented 1 year ago

I took a look quickly and it seems full, I will try it and ask you if I have an question ! :D

Ducki0210 commented 1 year ago

Hey, I found the gradle project repository and dependency but not the maven one, is there any ? Also, I was wondering if there is an option to set multiple lines above the NPC's head ? I wanna use it for NPC servers so there would be a line for the server name, and another for the status

or maybe a command like /npc displayName (name) (line) (text) ?

OliverSchlueter commented 1 year ago

I'm not too familiar with Maven but it should be something like this:

<dependency>
    <groupId>de.oliver</groupId>
    <artifactId>NpcPlugin</artifactId>
    <version>1.1.1</version>
    <scope>provided</scope>
</dependency>

About the multi line: You would need to use holograms for that. I have planned to integrate my FancyHolograms plugin but I'm currently very busy.

Ducki0210 commented 1 year ago

It does not seem to work, maybe the repository is missing ?

OliverSchlueter commented 1 year ago

Have you cloned this repository and then run gradlew publishToMavenLocal ?

Ducki0210 commented 1 year ago

Ahh sorry, I hate to ask that much but I am not very good with all the maven and gradle stuff...

OliverSchlueter commented 1 year ago

All good, I'm not very good with maven and gradle aswell 👀

OliverSchlueter commented 1 year ago

@Ducki0210 do you have any more questions or can I close this issue?