#'time' (Integer) is null, but it won't let me check if it is null

1 messages · Page 1 of 1 (latest)

sonic girder
#

Okay, so basically, I am trying to make an event not be able to be activated/done/started or whatever, if the player has activated/done/started it or whatever within the last 15 seconds

wicked island
#

== null
done

sonic girder
#

k thx, ill try it

#

also what is the difference between = and ==?

wicked island
#

= sets
== checks if something is equal to
!= checks if not equal to

sonic girder
#

Ooooo thats helpful thx

sonic girder
# wicked island == null done

umm got a similar error, basically 'player1' is null but I tried to set it to the player but it is still stopping at line 32 saying that 'player1' is null, before it can get to the part setting it as the player

32. String player1 = map1.get(Player).toString();
33.                             Player player = event.getPlayer();
34.                            if (player1 == null) {
35.                                player1 = String.valueOf(player);
36.                            }
#

would you or anyone happen to know how to solve this?