mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 11:35:36 +01:00
Update for RTS 2.0.0 build 54.
This commit is contained in:
parent
fddf4f8377
commit
b2eb1eb887
2
pom.xml
2
pom.xml
@ -156,7 +156,7 @@
|
||||
<dependency>
|
||||
<groupId>com.nyancraft.reportrts</groupId>
|
||||
<artifactId>ReportRTS</artifactId>
|
||||
<version>1.2.3</version>
|
||||
<version>2.0.0-54</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.comphenix.protocol</groupId>
|
||||
|
@ -20,12 +20,12 @@ import com.cnaude.purpleirc.PurpleBot;
|
||||
import com.cnaude.purpleirc.PurpleIRC;
|
||||
import com.nyancraft.reportrts.event.TicketAssignEvent;
|
||||
import com.nyancraft.reportrts.event.TicketClaimEvent;
|
||||
import com.nyancraft.reportrts.event.TicketCompleteEvent;
|
||||
import com.nyancraft.reportrts.event.TicketCreateEvent;
|
||||
import com.nyancraft.reportrts.event.TicketHoldEvent;
|
||||
import com.nyancraft.reportrts.event.TicketBroadcastEvent;
|
||||
import com.nyancraft.reportrts.event.TicketCloseEvent;
|
||||
import com.nyancraft.reportrts.event.TicketReopenEvent;
|
||||
import com.nyancraft.reportrts.event.TicketUnclaimEvent;
|
||||
import com.nyancraft.reportrts.event.TicketOpenEvent;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
|
||||
@ -50,7 +50,7 @@ public class ReportRTSListener implements Listener {
|
||||
* @param event
|
||||
*/
|
||||
@EventHandler
|
||||
public void onTicketCreateEvent(TicketCreateEvent event) {
|
||||
public void onTicketCreateEvent(TicketOpenEvent event) {
|
||||
for (PurpleBot ircBot : plugin.ircBots.values()) {
|
||||
ircBot.reportRTSNotify(event.getTicket().getName(),
|
||||
event.getTicket(), ircBot.botNick, "rts-notify");
|
||||
@ -58,7 +58,7 @@ public class ReportRTSListener implements Listener {
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onTicketCompleteEvent(TicketCompleteEvent event) {
|
||||
public void onTicketCompleteEvent(TicketCloseEvent event) {
|
||||
for (PurpleBot ircBot : plugin.ircBots.values()) {
|
||||
ircBot.reportRTSNotify(event.getTicket().getName(),
|
||||
event.getTicket(), ircBot.botNick, "rts-complete");
|
||||
|
@ -18,7 +18,6 @@ package com.cnaude.purpleirc.Hooks;
|
||||
|
||||
import com.cnaude.purpleirc.PurpleIRC;
|
||||
import com.nyancraft.reportrts.RTSFunctions;
|
||||
import com.nyancraft.reportrts.util.Message;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -37,7 +36,7 @@ public class ReportRTSHook {
|
||||
}
|
||||
|
||||
public void modBroadcast(String name, String message) {
|
||||
RTSFunctions.messageMods(Message.parse("broadcastMessage", name, message), false);
|
||||
RTSFunctions.messageStaff(message, true);
|
||||
plugin.logDebug("RTSMB: " + message);
|
||||
}
|
||||
}
|
||||
|
@ -643,11 +643,11 @@ public class ChatTokenizer {
|
||||
*/
|
||||
public String reportRTSTokenizer(String pName, String template, Ticket ticket) {
|
||||
String message = ticket.getMessage();
|
||||
String modName = ticket.getModName();
|
||||
String modName = ticket.getStaffName();
|
||||
String displayModName = "";
|
||||
String name = ticket.getName();
|
||||
String world = ticket.getWorld();
|
||||
String modComment = ticket.getModComment();
|
||||
String modComment = ticket.getComments().last().getComment();
|
||||
int id = ticket.getId();
|
||||
if (message == null) {
|
||||
message = "";
|
||||
@ -730,9 +730,6 @@ public class ChatTokenizer {
|
||||
if (world == null) {
|
||||
world = "";
|
||||
}
|
||||
if (modComment == null) {
|
||||
modComment = "";
|
||||
}
|
||||
if (modName == null) {
|
||||
modName = "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user