Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How do I check what is the argument in a boolean?
How do I check what is the argument in a boolean? [message #1829781] Fri, 10 July 2020 13:18 Go to next message
Netanel Rapoport is currently offline Netanel RapoportFriend
Messages: 1
Registered: July 2020
Junior Member
So I'm trying to code a plugin, and I have this
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
How can I check what the player typed as the args after I have the
if (label.equalsignorcase) ....... all of that.
If there is a way to do that please help
Re: How do I check what is the argument in a boolean? [message #1829816 is a reply to message #1829781] Sat, 11 July 2020 06:35 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31870
Registered: July 2009
Senior Member
It's not even clear which framework you are using. I expect that using the debugger to set a breakpoint in your onCommand method to inspect what's passed in sender, cmd, label, and args will help you answer this question yourself.

Ed Merks
Professional Support:
Previous Topic:Eclipse run of spring boot project often terminates without error
Next Topic:"No editor descriptor for id org.eclipse.wb.core.guiEditor" taggytaggytaggy
Goto Forum:

Current Time: Sun May 16 11:54:50 GMT 2021

Powered by FUDForum. Page generated in 0.01823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top