From 211f5b8a9cf45915284809ab4f34f815ef1233c0 Mon Sep 17 00:00:00 2001 From: cnaude Date: Mon, 12 Dec 2016 07:34:02 -0700 Subject: [PATCH] cleanup --- pom.xml | 41 ++++++++++++- .../purpleirc/Hooks/UltimateChatHook.java | 58 ------------------- 2 files changed, 40 insertions(+), 59 deletions(-) delete mode 100644 src/main/java/com/cnaude/purpleirc/Hooks/UltimateChatHook.java diff --git a/pom.xml b/pom.xml index 1e77b5e..ac3a4b0 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ UTF-8 - 1.10.2 + 1.11 SNAPSHOT @@ -122,6 +122,14 @@ jar provided + + + org.bukkit + spigot-111 + 1.11 + jar + provided + org.bukkit @@ -207,6 +215,13 @@ Herochat 5.7.0 + + + + com.cnaude.herochat + Herochat + 5.6.5 + @@ -389,6 +404,30 @@ GriefPrevention 12.1 + + + + me.clip + placeholderapi + 2.5.1 + provided + + + + + com.scarsz.discordsrv + DiscordSRV + 11.0 + provided + + + + + com.cnaude.uchat + UltimateChat + 1.6.8-b502 + provided + diff --git a/src/main/java/com/cnaude/purpleirc/Hooks/UltimateChatHook.java b/src/main/java/com/cnaude/purpleirc/Hooks/UltimateChatHook.java deleted file mode 100644 index 87d4c6e..0000000 --- a/src/main/java/com/cnaude/purpleirc/Hooks/UltimateChatHook.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2015 cnaude - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package com.cnaude.purpleirc.Hooks; - -import com.cnaude.purpleirc.PurpleIRC; -import br.net.fabiozumbi12.UltimateChat.API.uChatAPI -import org.bukkit.Bukkit; -import org.bukkit.entity.Player; - -/** - * - * @author cnaude - */ -public class UltimateChatHook { - - private final PurpleIRC plugin; - - /** - * - * @param plugin the PurpleIRC plugin - */ - public UltimateChatHook(PurpleIRC plugin) { - this.plugin = plugin; - - } - - public void sendMessage(String channel, String message) { - if (channel.isEmpty() || message.isEmpty()) { - return; - } - br.net.fabiozumbi12.UltimateChat - for (Player player : Bukkit.getOnlinePlayers()) { - MineverseChatPlayer mcp = MineverseChatAPI.getMineverseChatPlayer(player); - if (mcp != null) { - for (String listen : mcp.getListening()) { - if (listen.equalsIgnoreCase(channel)) { - plugin.broadcastToPlayer(player, message, "irc.message.chat"); - } - } - } - } - } - -}