56 lines
1.3 KiB
Java
56 lines
1.3 KiB
Java
// This claas was created by JaTiTV
|
|
|
|
package de.jatitv.commandguiv2.Spigot.system;
|
|
|
|
import de.jatitv.commandguiv2.Spigot.Listener.UseItem_Listener.Events;
|
|
import de.jatitv.commandguiv2.Spigot.Main;
|
|
import de.jatitv.commandguiv2.Spigot.config.config.SelectConfig;
|
|
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
|
import org.bukkit.entity.Player;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class Papi extends PlaceholderExpansion {
|
|
|
|
@Override
|
|
public String getIdentifier() {
|
|
return "commandgui";
|
|
}
|
|
|
|
@Override
|
|
public String getAuthor() {
|
|
return Main.plugin.getDescription().getAuthors().toString();
|
|
}
|
|
|
|
@Override
|
|
public String getVersion() {
|
|
return Main.plugin.getDescription().getVersion();
|
|
}
|
|
|
|
@Override
|
|
public boolean canRegister() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public boolean persist() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String onPlaceholderRequest(Player p, String params) {
|
|
if (params.contains("useitem_boolean")) {
|
|
Placeholder.useitem_boolean(p);
|
|
}
|
|
|
|
if (params.contains("useitem")) {
|
|
Placeholder.useitem(p);
|
|
}
|
|
|
|
if (params.contains("slot")) {
|
|
Placeholder.slot(p);
|
|
}
|
|
return null;
|
|
}
|
|
} |