Remove empty message check, remove netbeans autogenerated comments
This commit is contained in:
parent
6d3071d626
commit
d4d1d7ff18
@ -1,7 +1,3 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.cnaude.chairs.commands;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
@ -11,10 +7,6 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import com.cnaude.chairs.core.Chairs;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author cnaude
|
||||
*/
|
||||
public class ChairsCommand implements CommandExecutor {
|
||||
|
||||
private final Chairs plugin;
|
||||
@ -43,42 +35,30 @@ public class ChairsCommand implements CommandExecutor {
|
||||
} else {
|
||||
plugin.chairEffects.cancelPickup();
|
||||
}
|
||||
if (!plugin.msgReloaded.isEmpty()) {
|
||||
sender.sendMessage(plugin.msgReloaded);
|
||||
}
|
||||
} else {
|
||||
if (!plugin.msgNoPerm.isEmpty()) {
|
||||
sender.sendMessage(plugin.msgNoPerm);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sender instanceof Player) {
|
||||
Player p = (Player) sender;
|
||||
if (args[0].equalsIgnoreCase("on")) {
|
||||
if (p.hasPermission("chairs.self")) {
|
||||
ignoreList.removePlayer(p.getName());
|
||||
if (!plugin.msgEnabled.isEmpty()) {
|
||||
p.sendMessage(plugin.msgEnabled);
|
||||
}
|
||||
} else {
|
||||
if (!plugin.msgNoPerm.isEmpty()) {
|
||||
p.sendMessage(plugin.msgNoPerm);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (args[0].equalsIgnoreCase("off")) {
|
||||
if (p.hasPermission("chairs.self")) {
|
||||
ignoreList.addPlayer(p.getName());
|
||||
if (!plugin.msgDisabled.isEmpty()) {
|
||||
p.sendMessage(plugin.msgDisabled);
|
||||
}
|
||||
} else {
|
||||
if (!plugin.msgNoPerm.isEmpty()) {
|
||||
p.sendMessage(plugin.msgNoPerm);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.cnaude.chairs.commands;
|
||||
|
||||
import java.io.File;
|
||||
@ -14,14 +10,11 @@ import java.util.ArrayList;
|
||||
|
||||
import com.cnaude.chairs.core.Chairs;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author cnaude
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ChairsIgnoreList implements Serializable{
|
||||
public class ChairsIgnoreList implements Serializable {
|
||||
|
||||
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;
|
||||
public ChairsIgnoreList(Chairs plugin) {
|
||||
|
@ -1,16 +1,9 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.cnaude.chairs.core;
|
||||
|
||||
import org.bukkit.Material;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author cnaude
|
||||
*/
|
||||
public class ChairBlock {
|
||||
|
||||
private Material mat;
|
||||
private double sitHeight;
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.cnaude.chairs.sitaddons;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
@ -15,10 +11,6 @@ import org.bukkit.event.player.PlayerPickupItemEvent;
|
||||
|
||||
import com.cnaude.chairs.core.Chairs;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author cnaude
|
||||
*/
|
||||
public class ChairEffects {
|
||||
|
||||
private Chairs plugin;
|
||||
|
Loading…
Reference in New Issue
Block a user