001package net.tnemc.plugincore.paper.hook; 002/* 003 * The New Plugin Core 004 * Copyright (C) 2022 - 2024 Daniel "creatorfromhell" Vidmar 005 * 006 * This program is free software: you can redistribute it and/or modify 007 * it under the terms of the GNU Affero General Public License as published by 008 * the Free Software Foundation, either version 3 of the License, or 009 * (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU Affero General Public License for more details. 015 * 016 * You should have received a copy of the GNU Affero General Public License 017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 018 */ 019 020import me.clip.placeholderapi.PlaceholderAPI; 021import net.tnemc.plugincore.paper.impl.PaperPlayerProvider; 022 023/** 024 * PAPIParser 025 * 026 * @author creatorfromhell 027 * @since 0.1.2.0 028 */ 029public class PAPIParser { 030 031 public static String parse(final PaperPlayerProvider provider, final String message) { 032 return PlaceholderAPI.setPlaceholders(provider.getPlayer(), message); 033 } 034}