#Before and after of my code
1 messages · Page 1 of 1 (latest)
@heavy stag @bold flame
A before and after your tips
didnt know if that part was better that way
if (sender instanceof Player p ){
or that way
if (!(sender instanceof Player)){return false}
so I kept the one that would make me assign one less variable
you can make an early return to not indent it so much
i.e. if (!(p instanceof Player player) return false;
and then below that the rest of the function
the variable player will still be usable even if its outside of the if's scope technically
i’ll have to check it out when i get home
i can’t view it on my phone
Oh, didn’t know it was possible! Thank you for your explanation
yes, please don’t lol
unfortunately that doesn't work
why not
is this try catch for getting player names on input a good habit?
with your tips I was able to impress my internship supervisor
really?!?
nice bro that’s sick