Yes. I had a working system using exactly the same things half a year ago. But now it doesn't work.
BlockCommandSender is not a ServerCommandSender.
Lolno. I mean that if I write "/start end" (with several spaces) they all are replaced with one.
And I need the exact string being typed.
PlayerCommandPreprocessEvent.getMessage() gives string with removed spaces, i.e. /hello world will be shown as /hello world.
Lol. How long do you use java?
Here are the possible constructors:
I use my own .jar file to start server (by calling org.bukkit.craftbukkit.Main.main(new String)) but I need to handle some player events. How...
Dam, there are really no invocations of System.exit(), it only closes Minecraft threads. So why does it also close mine?
Ok, so where does mine server use it? I searched through it's methods but didn't find anything.
Oh, yeah. main(new String) works fine.
However when I use command "stop" it still stops my GUI. Why? I already tried to run this method in new...
There are no arguments, only method to parse them. Ok, what should I use in main(args) to simply run server?
UP. Does smb know arguments which bukkit uses to run main method? I'm trying to run it from within my jar with "" argument and getting this error:...
The main thing I need is to have GUI with server log working independently from bukkit. Probably there is another way to do it.
Great! Now I feel myself much better.
I make a GUI for server, and face 2 problems (however solving 1st also solves 2nd).
1) Is it possible to run bukkit from another java project in...
Bukkit.getPlayerExact() would be better. Always better.
Oh, dam. It's a shame I didn't see them. Thanks!
It's really strange, because my debugger shows this:
Yes... Did you read my first post?
I want to remove some standard commands which I never use.
(And I don't have any plugin command, use my own system to handle them.)
Subj. I get the SimpleCommandMap using method from here, but it only contains plugin commands.
Separate names with a comma.