14 Aug 2012, 22:38
Post #1
Hi, i know it's been a while, but i started making bukkit plugins, and i have a list of things i cannot figure out. So, i thought this would be the best place to ask.
First of all: How can i make player-independent classes? Like, if i set them ALL in the main class, if one users toggles something, it toggles for ALL users, but i want them independent. An example with toggleing would be nice.
Second: I cannot get player listeners to work, i mean onPlayerMove() or onPlayerJoin() simply does not react. I implemented the Listener thing, as well as @EventHandler. Still does not do the job.
Third: Run methods from args. What i mean, i have a command. Like /hello. If i add if(args[0]==command){SOMETHINGHERE(args[0]; return true;)}} it skips this part and goes straight to the next thing
Any help is appriciated. Thank you.
First of all: How can i make player-independent classes? Like, if i set them ALL in the main class, if one users toggles something, it toggles for ALL users, but i want them independent. An example with toggleing would be nice.
Second: I cannot get player listeners to work, i mean onPlayerMove() or onPlayerJoin() simply does not react. I implemented the Listener thing, as well as @EventHandler. Still does not do the job.
Third: Run methods from args. What i mean, i have a command. Like /hello. If i add if(args[0]==command){SOMETHINGHERE(args[0]; return true;)}} it skips this part and goes straight to the next thing
Any help is appriciated. Thank you.
_________________
Look, im just a Signature....
And containing universe boot-up sequence...
Do not alter at ANY circumstances....
If you have any problems, please shut the universe down and restart....
Microsoft (Gods Division)
WHERE IS MY FUCKING COOKIE?!?!