You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Item Manager** is just a project I made because I was bored. All it does is detect if you scan an Item and shows the price of the item, name of the item, and more.
8
+
9
+
### Download
10
+
11
+
You can download this program by clicking the green CODE button and clicking Download Zip after that open it in your Java IDE and run it!
12
+
13
+
14
+
### Discord
15
+
16
+
You can join my discord using this invite https://discord.gg/Y59DddqZZR please join the server if you have any issues or suggestions that you would like to make do not make random issues when you could just use the discord.
17
+
18
+
19
+
### Java Support
20
+
21
+
This project was made in Java 8, so I don't know why I have to say this you cannot use it in any other Java version other than Java 8.
22
+
23
+
### Credits
24
+
25
+
Thanks to [BadBird5907](https://github.com/Badbird-5907) for allowing me to use his EventBus it was really helpful for this project as I am very dumb and also very lazy, so yeah thanks to him.
26
+
27
+
28
+
## License
29
+
This project is licensed under [Eclipse Public License](https://github.com/HyperSkys/ItemManager/blob/main/LICENSE)
for (EventInfoeventInfo : eventInfos) { //TODO: Still slightly buggy, but shouldn't be a problem unless you're intentionally registering the same class as a class and instance, and the class has both static and instance event handlers
100
+
//check if method is already registered
101
+
if (eventInfo.getMethod().equals(method)) {
102
+
debug("Method " + method.getName() + " is already registered");
103
+
return;
104
+
}
105
+
if (instance != null && Modifier.isStatic(eventInfo.getMethod().getModifiers())) {
106
+
//check if parent class is the same
107
+
if (eventInfo.getMethod().getDeclaringClass().equals(method.getDeclaringClass())) {
108
+
debug("Method " + method.getName() + " is already registered, ignoring");
0 commit comments