The code above looks fine (except the "1 usage" and "no usage" in lines 7 and 17, but that doesn't seem to be part of the code?).
You're correct. The "usage" lines are an internal feature of the IDE. I added it for illustration. I'm not sure why it says that when I can clearly see that there's logic in the method. I don't run into this very often when using C# in VisualStudio.
When launching the game and loading a world, you should see the "Server name:" and "World Name:" output in the console/log. If that doesn't work, do you mind uploading the TestPlugin.jar here, so I can take a closer look at it?
Absolutely, thank you. I'll attach the file. I added the JAR file with exactly the folder structure you mentioned. Although, when I went into the game and opened the console with the Tilde (~) key, the logs were empty. To make sure I was in the right log, I type in some console commands, looking for things that referenced System, Print, Plugin. The console seemed to be in working order, so I assumed it was my script.
I converted the JAR to ZIP, inspected the folder structure, and it seemed fine. The yml file, class file, and manifest were all there. I don't know what the issue is. This is the first time I'm using an API, so I'm still figuring out how to hook into the methods and events. This is the reason I tried starting with some simple print strings before tackling more complex stuff like adding "modifiers," or so-called stats, to some of the clothes. I like some of the hats, but at the moment, the mining helmet is reasonably the most functional option. Haha once I understood importing and hooking, I thought I'd try making the chef hat reduce cooking time, the bear mask affecting the bear's aggression, or the camo hat affecting how close I can get to deer before they run off. That sort of thing.
TestPlugin.jar