Giter Club home page Giter Club logo

Comments (6)

oloflarsson avatar oloflarsson commented on July 16, 2024

Hello feildmaster :)
In the very latest bleeding edge build I would suggest you do the following instead and see if it works better for you:

FPlayer fplayer = com.massivecraft.factions.FPlayers.i.get(event.getPlayer());
List< FPlayer > fplayers = fplayer.getFaction().getFPlayers();

from factions.

feildmaster avatar feildmaster commented on July 16, 2024

I'll try it, but it was doing that on v 1.4.7->Current stable. (Tried as many as I had)

from factions.

Brettflan avatar Brettflan commented on July 16, 2024

Just checked into this. Due to the restructuring of the plugin, all API methods are now on the P class as of 1.5.9 and above.
So, you would access that method like so, based on your example: P.p.getPlayersInFaction(P.p.getPlayerFactionTag(event.getPlayer()))
I've tested that and it worked as expected.

from factions.

feildmaster avatar feildmaster commented on July 16, 2024

Did it? I ran it with the versions before 1.5.9.

from factions.

Brettflan avatar Brettflan commented on July 16, 2024

It worked when I first added it, and it works now...
I haven't tested in any of the versions between, so I suppose it's possible it was broken and then fixed somehow in that time.

from factions.

feildmaster avatar feildmaster commented on July 16, 2024

Odd. I've used the first plugin you used and it didn't even return myself in my faction.

from factions.

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.