Help for plugin

Status
This thread has been locked.

Clems02

Feedback score
0
Posts
15
Reactions
0
Resources
0
Hello,
I will need help to make a plugin.

I created a pick that I will enchant. I wish it was impossible for the player to throw it to the ground.
For this, I create my eventhandler. However, I can't get my previously created item (with my isCheck function).

Can someone please help me?
upload_2020-3-20_22-5-12.png


upload_2020-3-20_22-6-38.png
 

Attachments

  • upload_2020-3-20_22-5-12.png
    upload_2020-3-20_22-5-12.png
    312 bytes · Views: 44
  • upload_2020-3-20_22-6-38.png
    upload_2020-3-20_22-6-38.png
    292.7 KB · Views: 45
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

CureMe

Java Developer
Deactivated
Feedback score
7
Posts
248
Reactions
97
Resources
0
You can't use the this keyword inside a static method. You can just get rid of it and it won't show an error.
 

Clems02

Feedback score
0
Posts
15
Reactions
0
Resources
0
It's not work :'(

"Cannot make a static reference to the non-static field main."

upload_2020-3-20_22-27-47.png
 

Attachments

  • upload_2020-3-20_22-27-47.png
    upload_2020-3-20_22-27-47.png
    295.5 KB · Views: 37
Status
This thread has been locked.
Top