fixed boolean error

This commit is contained in:
Bryson Steck 2021-06-06 12:22:07 -06:00
parent e8f9bab8af
commit e6010bdb97
3 changed files with 1 additions and 1 deletions

View file

@ -12,7 +12,7 @@ import org.bukkit.potion.PotionEffect;
public class CommandResurrect implements CommandExecutor { public class CommandResurrect implements CommandExecutor {
@Override @Override
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) { public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
boolean valid = (strings.length != 1); boolean valid = (strings.length == 1);
if (commandSender instanceof Player) { if (commandSender instanceof Player) {
Player p = (Player) commandSender; Player p = (Player) commandSender;