Remove empty message check, remove netbeans autogenerated comments

This commit is contained in:
Shevchik 2014-03-07 22:36:55 +04:00
parent 6d3071d626
commit d4d1d7ff18
4 changed files with 10 additions and 52 deletions

View File

@ -1,7 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.cnaude.chairs.commands; package com.cnaude.chairs.commands;
import org.bukkit.command.Command; import org.bukkit.command.Command;
@ -11,10 +7,6 @@ import org.bukkit.entity.Player;
import com.cnaude.chairs.core.Chairs; import com.cnaude.chairs.core.Chairs;
/**
*
* @author cnaude
*/
public class ChairsCommand implements CommandExecutor { public class ChairsCommand implements CommandExecutor {
private final Chairs plugin; private final Chairs plugin;
@ -43,42 +35,30 @@ public class ChairsCommand implements CommandExecutor {
} else { } else {
plugin.chairEffects.cancelPickup(); plugin.chairEffects.cancelPickup();
} }
if (!plugin.msgReloaded.isEmpty()) {
sender.sendMessage(plugin.msgReloaded); sender.sendMessage(plugin.msgReloaded);
}
} else { } else {
if (!plugin.msgNoPerm.isEmpty()) {
sender.sendMessage(plugin.msgNoPerm); sender.sendMessage(plugin.msgNoPerm);
} }
} }
}
if (sender instanceof Player) { if (sender instanceof Player) {
Player p = (Player) sender; Player p = (Player) sender;
if (args[0].equalsIgnoreCase("on")) { if (args[0].equalsIgnoreCase("on")) {
if (p.hasPermission("chairs.self")) { if (p.hasPermission("chairs.self")) {
ignoreList.removePlayer(p.getName()); ignoreList.removePlayer(p.getName());
if (!plugin.msgEnabled.isEmpty()) {
p.sendMessage(plugin.msgEnabled); p.sendMessage(plugin.msgEnabled);
}
} else { } else {
if (!plugin.msgNoPerm.isEmpty()) {
p.sendMessage(plugin.msgNoPerm); p.sendMessage(plugin.msgNoPerm);
} }
} }
}
if (args[0].equalsIgnoreCase("off")) { if (args[0].equalsIgnoreCase("off")) {
if (p.hasPermission("chairs.self")) { if (p.hasPermission("chairs.self")) {
ignoreList.addPlayer(p.getName()); ignoreList.addPlayer(p.getName());
if (!plugin.msgDisabled.isEmpty()) {
p.sendMessage(plugin.msgDisabled); p.sendMessage(plugin.msgDisabled);
}
} else { } else {
if (!plugin.msgNoPerm.isEmpty()) {
p.sendMessage(plugin.msgNoPerm); p.sendMessage(plugin.msgNoPerm);
} }
} }
} }
}
return true; return true;
} }

View File

@ -1,7 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.cnaude.chairs.commands; package com.cnaude.chairs.commands;
import java.io.File; import java.io.File;
@ -14,14 +10,11 @@ import java.util.ArrayList;
import com.cnaude.chairs.core.Chairs; import com.cnaude.chairs.core.Chairs;
/**
*
* @author cnaude
*/
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class ChairsIgnoreList implements Serializable{ public class ChairsIgnoreList implements Serializable {
private static ArrayList<String> ignoreList = new ArrayList<String>(); private static ArrayList<String> ignoreList = new ArrayList<String>();
private static final String IGNORE_FILE = "plugins/Chairs/ignores.ser"; private static final String IGNORE_FILE = "plugins"+File.separator+"Chairs"+File.separator+"ignores.ser";
private Chairs plugin; private Chairs plugin;
public ChairsIgnoreList(Chairs plugin) { public ChairsIgnoreList(Chairs plugin) {

View File

@ -1,16 +1,9 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.cnaude.chairs.core; package com.cnaude.chairs.core;
import org.bukkit.Material; import org.bukkit.Material;
/**
*
* @author cnaude
*/
public class ChairBlock { public class ChairBlock {
private Material mat; private Material mat;
private double sitHeight; private double sitHeight;

View File

@ -1,7 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.cnaude.chairs.sitaddons; package com.cnaude.chairs.sitaddons;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -15,10 +11,6 @@ import org.bukkit.event.player.PlayerPickupItemEvent;
import com.cnaude.chairs.core.Chairs; import com.cnaude.chairs.core.Chairs;
/**
*
* @author cnaude
*/
public class ChairEffects { public class ChairEffects {
private Chairs plugin; private Chairs plugin;