Skip to content

Commit

Permalink
Rename NotifyScheduleEvent to ChatMessageScheduleEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixafy committed Feb 24, 2019
1 parent f260365 commit 3d0c8a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package net.minecord.messagenotifier.controller;

import net.minecord.messagenotifier.MessageNotifier;
import net.minecord.messagenotifier.events.NotifyScheduleEvent;
import net.minecord.messagenotifier.events.ChatMessageScheduleEvent;
import net.minecord.messagenotifier.events.ChatMessageSendEvent;
import net.minecord.messagenotifier.util.PlaceholderUtil;
import org.bukkit.Bukkit;
Expand Down Expand Up @@ -51,7 +51,7 @@ public void onEnable(FileConfiguration config) {
private void sendChatMessage(int delay) {
currentThread = new BukkitRunnable() {
public void run() {
NotifyScheduleEvent scheduleEvent = new NotifyScheduleEvent(delay);
ChatMessageScheduleEvent scheduleEvent = new ChatMessageScheduleEvent(delay);
Bukkit.getPluginManager().callEvent(scheduleEvent);

if (scheduleEvent.isCancelled()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class NotifyScheduleEvent extends Event implements Cancellable {
public class ChatMessageScheduleEvent extends Event implements Cancellable {

private static final HandlerList handlerList = new HandlerList();
private boolean isCancelled = false;
private int nextNotifyIn;

public NotifyScheduleEvent(int nextNotifyIn) {
public ChatMessageScheduleEvent(int nextNotifyIn) {
this.nextNotifyIn = nextNotifyIn;
}

Expand Down

0 comments on commit 3d0c8a4

Please sign in to comment.