Plugin factions - Define a string as a faction

Discussion in 'Plugin Development' started by Maxx_Qc, Jul 5, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Maxx_Qc

    Hi everyone, I'm trying to define a string as a faction but I don't get it to work.
    I have a command and I want to define the arg 0 as a faction but it doesn't work! :(
    This is what I have for now (not working, of course) : Faction duelFaction = Faction.get(args[0]);

    Error when I type in the console with a faction name : Non existing factionId Maxx_Qc requested. Cleaning all boards and uplayers.

    Can someone tell me how to define an arg as a faction? THANK YOU!
     
  2. Offline

    WesJD

    @Maxx_Qc Forget this if English is not your first language: Please type better, I can barely understand you. Also, could you please tell us what you are even trying to make? Will make us understand it better.
     
  3. Offline

    Totom3

  4. Offline

    Maxx_Qc

    My first language is french :/

    Wow, thank you so much

    Ok so I have an error.
    Faction duelFaction = FactionColl.get().getByName(args[0]);
    My error is on the .get().
    It says: [​IMG]
    Please help!

    @Totom3 can you help me on this?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 12, 2016
  5. Offline

    Totom3

    @Maxx_Qc No idea. It seems like the .jar you are using does not match the source code posted on Github. Perhaps they've made all the methods static? So you'd use FactionColl.getByName( .... ). I can't help you much more, sorry.
     
Thread Status:
Not open for further replies.

Share This Page