Removed excessive comments, changed a mistake or two.

This commit is contained in:
nossr50 2011-01-15 13:29:47 -08:00
parent 4e004558e5
commit 637868a12b
2 changed files with 2 additions and 11 deletions

View File

@ -9,7 +9,7 @@ import org.bukkit.event.block.BlockListener;
import org.bukkit.event.block.BlockPhysicsEvent; import org.bukkit.event.block.BlockPhysicsEvent;
/** /**
* vPlayerSpawn block listener * vStopFire block listener
* @author nossr50 * @author nossr50
*/ */
public class vBlockListener extends BlockListener { public class vBlockListener extends BlockListener {
@ -26,5 +26,4 @@ public class vBlockListener extends BlockListener {
if(!cause.equals("FLINT_AND_STEEL")) if(!cause.equals("FLINT_AND_STEEL"))
event.setCancelled(true); event.setCancelled(true);
} }
//put all Block related code here
} }

View File

@ -24,9 +24,6 @@ public class vStopFire extends JavaPlugin {
public vStopFire(PluginLoader pluginLoader, Server instance, PluginDescriptionFile desc, File folder, File plugin, ClassLoader cLoader) { public vStopFire(PluginLoader pluginLoader, Server instance, PluginDescriptionFile desc, File folder, File plugin, ClassLoader cLoader) {
super(pluginLoader, instance, desc, folder, plugin, cLoader); super(pluginLoader, instance, desc, folder, plugin, cLoader);
// NOTE: Event registration should be done in onEnable not here as all events are unregistered when a plugin is disabled
} }
@ -37,12 +34,7 @@ public class vStopFire extends JavaPlugin {
System.out.println( pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!" ); System.out.println( pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!" );
} }
public void onDisable() { public void onDisable() {
// TODO: Place any custom disable code here System.out.println("vStopFire disabled!");
// NOTE: All registered events are automatically unregistered when a plugin is disabled
// EXAMPLE: Custom code, here we just output some info so we can check all is well
System.out.println("Goodbye world!");
} }
public boolean isDebugging(final Player player) { public boolean isDebugging(final Player player) {
if (debugees.containsKey(player)) { if (debugees.containsKey(player)) {