FACTIONSUUID: How do I manipulate /f map ?

Discussion in 'Spigot Plugin Development' started by Sensonic, May 22, 2017.

  1. Hello! I wanna modify the factions /f map command. I want to increase the amount of visible chunks. I've looking through the API for a few hours now. I must say it's quite confusing.

    Does anyone have any experience on how to do this?
    Thanks in advance!
  2. It is in the config.
  3. As you can see in the code, it calls for the values set in config:
    Code (Text):
      public ArrayList<String> getMap(Faction faction, FLocation flocation, double inDegrees) {
            ArrayList<String> ret = new ArrayList<String>();
            Faction factionLoc = getFactionAt(flocation);
            ret.add(P.p.txt.titleize("(" + flocation.getCoordString() + ") " + factionLoc.getTag(faction)));

            int halfWidth = Conf.mapWidth / 2;
            int halfHeight = Conf.mapHeight / 2;
    If people would bother to look through source they would easily be able to find their answers.
  4. Thanks a lot. Though how would I modify this through my own external plugin while still using /f map, is this possible?
  5. You would have to fork it unless you want to use a ton of reflection to try and somehow modify it if it is even possible.