51 lines
1.1 KiB
Java
51 lines
1.1 KiB
Java
// This claas was created by JaTiTV
|
|
|
|
package net.t2code.commandguiv2.Spigot.system;
|
|
|
|
import net.t2code.commandguiv2.Spigot.Main;
|
|
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
|
import org.bukkit.entity.Player;
|
|
|
|
public class Papi extends PlaceholderExpansion {
|
|
|
|
@Override
|
|
public String getIdentifier() {
|
|
return "commandgui";
|
|
}
|
|
|
|
@Override
|
|
public String getAuthor() {
|
|
return Main.getPlugin().getDescription().getAuthors().toString();
|
|
}
|
|
|
|
@Override
|
|
public String getVersion() {
|
|
return Main.getPlugin().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;
|
|
}
|
|
} |