Solved Factions

Discussion in 'Spigot Plugin Development' started by harveycat1, Apr 22, 2017.

  1. I need to get the coords of the player and check if they are in there own claim but it will be working multiple people at same time so i cant use config for it
    Code (Text):
                if (sender.hasPermission("factionsfly.use")) {
                    MPlayer mplayer;
                    mplayer = MPlayer.get(player);
                    World world = player.getLocation().getWorld().getName();

  2. Check the Factions API. What you need to do is get the players faction and then get the faction ownership of the player location. Then check for equality
  3. i know i need to do that though but im not sure of a efficient way to get the player location
  4. Well the Player class has a method called getLocation() which gets the block the player is currently on.
  5. Why not just use getLocation()?
  6. ???