#Buenny Help Chat
1 messages · Page 1 of 1 (latest)
🤡
what now
uhh i don't remember the error message but i think yes
could you dm me the class if you don’t want it to be in the open?
it’s just… hard without more code
i don't trust nobody
honestly - i have no need for your code. if the plugin exists why would i copy it
can you just tell me what the possibilites are of why this is happening and then we can eliminate them one by one until we find what it is
any plugin can be decompiled
no one will steal your code
you are calling the method that uses the player1 field before it is assigned
public void gamerulesGetPlayer(Player player2) {
player1 = player2;
so this is ur code right?
it was that
now it's this
public void gamerulesOpenInvAndSetPlayerVariable(Player player2) {
player1 = player2;
player2.openInventory(this.getInventory());
System.out.println("banana " + player1);
System.out.println("banana2 " + player2);
}```
i tried changing it up to see if i can fix it
also it doesn't print out anything
hmm
so maybe it's never called?
which ide do you use
IntelliJ
nop, it's used
k
where do you call the method
command class
hmm is there if statements that could lead to it not being called
there are, but i realise that it's working since it's sending the error when i do the command
the null pointer error?
the open gui thing is inside the gamerulesOpenInvAndSetPlayerVariable
so it has to be run for it to send an error, which it is
.
yes
ok
there's only 1 error
maybe try player1 = Bukkit.getPlayerExact(player2.getUuid());
see if it causes the same error
.toString()
lemme try this out 1 sec
?learnjava just gonna leave this here...
?learnjava
doesn’t work in threads
rip
now you look like a fool
nuh
anyways still doesn't sout and same error
what line does it error on
wdym
this would be done in 5 minutes if u sent code
infact, he looks like someone with actual knowledge
lolololol
do you guys exist just to make fun of people and be toxic
yes
yeah ok that makes sense
thats exactly it actually
logic