Temp work on the jailcheck command, not finishing.
It has been decided we are going to be switching the command structure up, more details to come.
This commit is contained in:
parent
e0dc22dfec
commit
cb8de04a91
@ -5,6 +5,7 @@ import org.bukkit.command.CommandSender;
|
|||||||
import com.graywolf336.jail.JailManager;
|
import com.graywolf336.jail.JailManager;
|
||||||
import com.graywolf336.jail.command.Command;
|
import com.graywolf336.jail.command.Command;
|
||||||
import com.graywolf336.jail.command.CommandInfo;
|
import com.graywolf336.jail.command.CommandInfo;
|
||||||
|
import com.graywolf336.jail.enums.LangString;
|
||||||
|
|
||||||
@CommandInfo(
|
@CommandInfo(
|
||||||
maxArgs = 1,
|
maxArgs = 1,
|
||||||
@ -19,7 +20,19 @@ public class JailCheckCommand implements Command{
|
|||||||
// Checks the status of the specified prisoner, if no args, will display all players currently jailed
|
// Checks the status of the specified prisoner, if no args, will display all players currently jailed
|
||||||
|
|
||||||
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
||||||
return true; //If they made it this far, the command is intact and ready to be processed. :)
|
//No args means show everyone
|
||||||
|
if(args.length == 0) {
|
||||||
|
|
||||||
|
}else {
|
||||||
|
//Otherwise let's check the first arg
|
||||||
|
if(jm.isPlayerJailed(args[0])) {
|
||||||
|
|
||||||
|
}else {
|
||||||
|
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.NOTJAILED, args[0]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user