public static void updateLocationToMercury(PrisonPearl pp, PrisonPearlEvent.Type type) { if (plugin.isMercuryLoaded()) { String message = ""; Location loc = pp.getLocation(); message = type.name() + "|" + pp.getImprisonedId().toString() + "|" + pp.getImprisonedName() + "|" + loc.getWorld().getName() + "|" + loc.getBlockX() + "|" + loc.getBlockY() + "|" + loc.getBlockZ(); message += "|" + pp.getUniqueIdentifier(); if (type.equals(PrisonPearlEvent.Type.FREED) && plugin.getConfig().getBoolean("free_tppearl")) message += "|" + MercuryAPI.serverName(); MercuryAPI.sendGlobalMessage(message, "PrisonPearlUpdate"); } }
public static void requestPPSummon(UUID uuid) { String message = "request|" + uuid.toString() + "|" + MercuryAPI.serverName(); MercuryAPI.sendGlobalMessage(message, "PrisonPearlSummon"); }