Class GriefPrevent

java.lang.Object
xyz.geik.farmer.integrations.Integrations
xyz.geik.farmer.integrations.grief.GriefPrevent

public class GriefPrevent extends Integrations
GriefPrevention Integration hook Which getting owner UUID and region ID for necessary sections.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static me.ryanhamshire.GriefPrevention.GriefPrevention
    Hooking GriefPrevention main class Because i couldn't find any developer API About this plugin so i get through Main class.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Integrations#super calls here Constructor for abstract class
  • Method Summary

    Modifier and Type
    Method
    Description
    getOwnerUUID(String regionId)
    Getting Owner UUID by Region ID
    getOwnerUUID(org.bukkit.Location location)
    Getting Owner UUID by Location of player
    getRegionID(org.bukkit.Location location)
    Getting Region ID by Location of player

    Methods inherited from class xyz.geik.farmer.integrations.Integrations

    registerIntegrations

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • grief

      public static me.ryanhamshire.GriefPrevention.GriefPrevention grief
      Hooking GriefPrevention main class Because i couldn't find any developer API About this plugin so i get through Main class.
  • Constructor Details

    • GriefPrevent

      public GriefPrevent()
      Integrations#super calls here Constructor for abstract class
  • Method Details

    • getOwnerUUID

      public UUID getOwnerUUID(String regionId)
      Getting Owner UUID by Region ID
      Specified by:
      getOwnerUUID in class Integrations
      Parameters:
      regionId - id of region
      Returns:
      UUID owner uuid
    • getOwnerUUID

      public UUID getOwnerUUID(org.bukkit.Location location)
      Getting Owner UUID by Location of player
      Specified by:
      getOwnerUUID in class Integrations
      Parameters:
      location - location of region
      Returns:
      UUID owner uuid
    • getRegionID

      public String getRegionID(org.bukkit.Location location)
      Getting Region ID by Location of player
      Specified by:
      getRegionID in class Integrations
      Parameters:
      location - location of region
      Returns:
      String regionId