novucs / factions-top

An efficient and comprehensive factions ranking system
MIT License
12 stars 26 forks source link

Hook #57

Closed SuperJogosDBZ closed 7 years ago

SuperJogosDBZ commented 7 years ago

How can I hook the plugin with another plugin?

Example of what I want to do: http://prntscr.com/ghd7gz

novucs commented 7 years ago

Currently FactionsTop supports MVdW placeholders API, so any plugin that uses this should work. Does that server use this FactionsTop plugin?

SuperJogosDBZ commented 7 years ago

the splayset is giving error when picking the factions.

novucs commented 7 years ago

Could you please give a reproducible example for this?

SuperJogosDBZ commented 7 years ago

http://prntscr.com/ghil9q

novucs commented 7 years ago

Oh you're actually programming something, right. What error is it that you're getting?

Edit: I'm being dumb, you're getting that error because the SplaySet implements a Set, not a List. https://github.com/novucs/factions-top/blob/master/core/src/main/java/net/novucs/ftop/util/SplaySet.java#L13

SuperJogosDBZ commented 7 years ago

https://pastebin.com/htDYfsND

novucs commented 7 years ago

May I see the entire TopManager.java file?

SuperJogosDBZ commented 7 years ago

https://ghostbin.com/paste/nottb

novucs commented 7 years ago

No, the entire file. I need accurate line numbers to debug.

SuperJogosDBZ commented 7 years ago

https://ghostbin.com/paste/ed9sd

novucs commented 7 years ago

You've given me two entirely different snippets, one telling me that } was the cause of the null pointer exception. I'm going to suggest that you just use the API that I've provided.

An example usage: https://github.com/novucs/factions-top/blob/master/example/src/main/java/com/example/plugin/ExamplePlugin.java

(Copy this entire class and make no modifications) https://github.com/novucs/factions-top/blob/master/example/src/main/java/com/example/plugin/FactionsTopApi.java

Also use the latest version of FactionsTop -- some of the previous SplaySet builds are a little buggy. I've noticed you're using an old version. https://drive.google.com/open?id=0B8XNBcgBSdHyWFRITE90QU9WZEE

SuperJogosDBZ commented 7 years ago

My encoder has tried everything but it does not work.

novucs commented 7 years ago

If you want me to help you, then at least supply me with new and relavent information.

SuperJogosDBZ commented 7 years ago

Can it provide your bitbucket server? I want to give you permission to see the plugin.

novucs commented 7 years ago

My bitbucket username is novucs.

SuperJogosDBZ commented 7 years ago

Ready, my nick there is vhtk the name of the project is worldtop.

SuperJogosDBZ commented 6 years ago

Could see the WorldTop project bitbucket?

novucs commented 6 years ago

Your code still thinks its a list. Just use the API I linked you.

SuperJogosDBZ commented 6 years ago

Check the code again, the code was out of date, it's now up to date.

SuperJogosDBZ commented 6 years ago

I updated now!

novucs commented 6 years ago

It's still not using the API I've supplied. Take a look at this example plugin: https://github.com/novucs/factions-top/tree/master/example/src/main/java/com/example/plugin

SuperJogosDBZ commented 6 years ago

How do I get the faction list for this class?

SuperJogosDBZ commented 6 years ago

There is no class in this api to pick up the faction list, how do I?