As I proposed earlier you are more than welcome to send me your plugin folder from the netbeans directory to have a look at, it is usually under /MyDocuments/Netbeans
Very basic question on chat and getplayer
-
- English
- angriff
- Thread is marked as Resolved.
-
-
I thought I was on the right path but now the plugin prevents my server from running. Attached error log. I tried to create a yml file but seems it does not recognize it. The instructions says it will create it but it does not in netbeans..
-
you need to create the ylm file yourself, Netbeans doesn't create it on its own (where did you read that it is created automatically?)
in netbeans you need to open the MyDocuments/Netbeans/MyPlugin/src folder and in it create a resources directory inside that directory create the plugin.yml file
-
you need to create the ylm file yourself, Netbeans doesn't create it on its own (where did you read that it is created automatically?)
in netbeans you need to open the MyDocuments/Netbeans/MyPlugin/src folder and in it create a resources directory inside that directory create the plugin.yml filGu
guess I am misunderstanding this step as automatic
So what directory in the yml file do you use for your main: net.mypackage.myplugin.MyPlugin
-
well you should use packageName.MainPluginClassName (your main plugin class is the one that has the extends Plugin keyword)
Yes the resources folder will be added automatically when you build the project if it is present in the src directory, the build command is executed and includes everything from the src directory of your package.
so you should add the resources directory there like:
In this case you would add in the yml file: MyPackage.MyMainPluginClass as your main class -
Well thanks I did that. I am completely lost here. I have stripped everything out of the plugin .. all the Println to console, everything but the basic routine. I compile it and it keeps my server from booting.
-
what error do you get now when the server boots? Is it the same about the yml file or a different one?
I will take a look at the plugin when i get home in 5-6 hours from now, lunch time here
-
what error do you get now when the server boots? Is it the same about the yml file or a different one?
I will take a look at the plugin when i get home in 5-6 hours from now, lunch time here
Well different errors so I guess that is progress.. once I get this hello world going I think I will begin to jog. Thanks for the help.. it is interestingly hopeful that I can compete in the development of my server for this game
-
Minos.. is main the issue here?
-
Sorry got tired last night and forgot to reply
here is your corrected code, it should now work:
Javaand here is the corrected plugin yml:
-
-
you are missing an m in the main class in the plugin yml it is commandsay.Commandsay not comandsay.Commandsay
-
Thank you sir. Great to have another set of eyes on the m.. still not sure exactly what was wrong on the yml.. i kept getting an error in the name <first line> until i deleted it and retyped it.
I would buy you lunch if you were in my office.. ...I owe you big time..
-
-
yw @angriff happy to help
Well I am sure some newbie will be able to look at that and learn something. I see the command structure but it seems the YML is what kept it from functioning for the most part. The logical order of on enable and on disable. Is that just a structure thing or would it execute both regardless of position?
On to databases now..
-
Well I am sure some newbie will be able to look at that and learn something. I see the command structure but it seems the YML is what kept it from functioning for the most part. The logical order of on enable and on disable. Is that just a structure thing or would it execute both regardless of position?
On to databases now..It doesn't really matter which order you write your methods in as they will only be executed when called by the game or some other method of yours
-
It doesn't really matter which order you write your methods in as they will only be executed when called by the game or some other method of yours
So all along it was a typo in the yml..
-
Woot Just wrote my second program that works... Thanks Minos.
-
hahaha glad to hear keep at it
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!