Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Updated to CB1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
feildmaster committed Jan 30, 2012
1 parent 6bdc4be commit a2bc6f0
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Eclipse stuff
/.classpath
/.project
/.settings

# netbeans
/nbproject

# we use maven!
/build.xml
/target

# vim
.*.sw[a-p]

# various other potential build files
/build
/bin
/dist
/manifest.mf

# Mac filesystem dust
/.DS_Store

# intellij
*.iml
*.ipr
*.iws
.idea/
22 changes: 22 additions & 0 deletions src/main/java/com/feildmaster/module/faction/EventListener.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.feildmaster.module.faction;

import com.feildmaster.channelchat.event.channel.*;
import org.bukkit.event.*;

public class EventListener implements Listener {

@EventHandler(priority=EventPriority.HIGHEST)
public void onReload(ReloadEvent event) {
Module.getplugin().reloadChannel();
}

@EventHandler(priority=EventPriority.HIGHEST)
public void onChannelDelete(ChannelDeleteEvent event) {
if(event.isCancelled()) return;

if(event.getChannel() instanceof FactionChannel) {
event.setCancelled(true);
event.setCancelReason("You can't delete FactonChannel!");
}
}
}

0 comments on commit a2bc6f0

Please sign in to comment.