placeholder api update

This commit is contained in:
cnaude 2020-11-02 21:34:28 -07:00
parent fe765231a6
commit 39fbe751a0
5 changed files with 36 additions and 25 deletions

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<netbeans.compile.on.save>none</netbeans.compile.on.save>
<netbeans.hint.license>gpl30</netbeans.hint.license>
<org-netbeans-modules-javascript2-requirejs.enabled>true</org-netbeans-modules-javascript2-requirejs.enabled>
<netbeans.hint.jdkPlatform>JDK_1.8</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>

View File

@ -6,7 +6,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Bukkit API Version, change if out dated -->
<bukkit.version>1.15.1</bukkit.version>
<bukkit.version>1.16.4</bukkit.version>
<build.number>SNAPSHOT</build.number>
</properties>
@ -50,12 +50,10 @@
</repository>
-->
<!--
<repository>
<id>placeholderapi</id>
<url>http://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
-->
<repository>
<id>dynmap</id>
@ -414,7 +412,7 @@
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.4</version>
<version>2.10.9</version>
<scope>provided</scope>
</dependency>

View File

@ -18,6 +18,8 @@ package com.cnaude.purpleirc;
import com.cnaude.purpleirc.IRCMessage.Type;
import java.util.Set;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
@ -25,6 +27,8 @@ import org.bukkit.permissions.Permission;
import org.bukkit.permissions.PermissionAttachment;
import org.bukkit.permissions.PermissionAttachmentInfo;
import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
*
@ -66,6 +70,16 @@ public class IRCCommandSender implements CommandSender {
}
}
@Override
public void sendMessage(UUID uuid, String s) {
}
@Override
public void sendMessage(UUID uuid, String[] strings) {
}
private void addMessageToQueue(String message) {
ircBot.messageQueue.add(new IRCMessage(target,
plugin.colorConverter.gameColorsToIrc(message), responseType));

View File

@ -18,6 +18,8 @@ package com.cnaude.purpleirc;
import com.cnaude.purpleirc.IRCMessage.Type;
import java.util.Set;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.Server;
import org.bukkit.command.ConsoleCommandSender;
@ -27,6 +29,8 @@ import org.bukkit.permissions.Permission;
import org.bukkit.permissions.PermissionAttachment;
import org.bukkit.permissions.PermissionAttachmentInfo;
import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
*
@ -67,6 +71,16 @@ public class IRCConsoleCommandSender implements ConsoleCommandSender {
}
}
@Override
public void sendMessage(UUID uuid, String s) {
}
@Override
public void sendMessage(UUID uuid, String[] strings) {
}
private void addMessageToQueue(String message) {
ircBot.messageQueue.add(new IRCMessage(target,
plugin.colorConverter.gameColorsToIrc(message), type));
@ -161,6 +175,11 @@ public class IRCConsoleCommandSender implements ConsoleCommandSender {
plugin.logDebug("sendRawMessage: " + string);
}
@Override
public void sendRawMessage(@Nullable UUID uuid, @NotNull String s) {
}
@Override
public PermissionAttachment addAttachment(Plugin plugin, String string, boolean bln) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.

View File

@ -2377,6 +2377,7 @@ public final class PurpleBot {
* @param reload
*/
public void asyncQuit(final Boolean reload) {
plugin.logInfo("asyncQuit: " + reload);
plugin.getServer().getScheduler().runTaskAsynchronously(plugin, new Runnable() {
@Override
public void run() {