Class ACFBukkitUtil

    • Method Detail

      • sendMsg

        @Deprecated
        public static void sendMsg​(org.bukkit.command.CommandSender player,
                                   String message)
        Deprecated.
        Move to Message Keys on the CommandIssuer
      • stringToLocation

        public static org.bukkit.Location stringToLocation​(String storedLoc,
                                                           org.bukkit.World forcedWorld)
      • distance

        public static double distance​(@NotNull
                                      @NotNull org.bukkit.entity.Entity e1,
                                      @NotNull
                                      @NotNull org.bukkit.entity.Entity e2)
      • distance2d

        public static double distance2d​(@NotNull
                                        @NotNull org.bukkit.entity.Entity e1,
                                        @NotNull
                                        @NotNull org.bukkit.entity.Entity e2)
      • distance2d

        public static double distance2d​(@NotNull
                                        @NotNull org.bukkit.Location loc1,
                                        @NotNull
                                        @NotNull org.bukkit.Location loc2)
      • distance

        public static double distance​(@NotNull
                                      @NotNull org.bukkit.Location loc1,
                                      @NotNull
                                      @NotNull org.bukkit.Location loc2)
      • getTargetLoc

        public static org.bukkit.Location getTargetLoc​(org.bukkit.entity.Player player)
      • getTargetLoc

        public static org.bukkit.Location getTargetLoc​(org.bukkit.entity.Player player,
                                                       int maxDist)
      • getTargetLoc

        public static org.bukkit.Location getTargetLoc​(org.bukkit.entity.Player player,
                                                       int maxDist,
                                                       double addY)
      • getRandLoc

        public static org.bukkit.Location getRandLoc​(org.bukkit.Location loc,
                                                     int radius)
      • getRandLoc

        public static org.bukkit.Location getRandLoc​(org.bukkit.Location loc,
                                                     int xzRadius,
                                                     int yRadius)
      • getRandLoc

        @NotNull
        public static @NotNull org.bukkit.Location getRandLoc​(org.bukkit.Location loc,
                                                              int xRadius,
                                                              int yRadius,
                                                              int zRadius)
      • isWithinDistance

        public static boolean isWithinDistance​(@NotNull
                                               @NotNull org.bukkit.entity.Player p1,
                                               @NotNull
                                               @NotNull org.bukkit.entity.Player p2,
                                               int dist)
      • isWithinDistance

        public static boolean isWithinDistance​(@NotNull
                                               @NotNull org.bukkit.Location loc1,
                                               @NotNull
                                               @NotNull org.bukkit.Location loc2,
                                               int dist)
      • findPlayerSmart

        public static org.bukkit.entity.Player findPlayerSmart​(org.bukkit.command.CommandSender requester,
                                                               String search)
        Deprecated.
        Please move to the CommandIssuer version
      • findPlayerSmart

        public static org.bukkit.entity.Player findPlayerSmart​(co.aikar.commands.CommandIssuer issuer,
                                                               String search)