Hi.
Because ChestShop can't be done right now, I switched my attention at portals plugin.
Idea is: you create a warp (exit) point, then you select an entrance volume using wooden sword, add some chat command magic and TADA - you got one-way portal, which could be used for both in-world and interworld travels.
If you need two-way portal, you simply create warp points inside two entrances and link them cross-like.
Right now I faced a problem: I can't get player's name inside OnBlockPlace() hook
Simple code like this:
Code:
function OnBlockPlace(PacketData, Player) -- RIGHTCLICK!
LOG("PLAYER NAME IS: "..Player:GetName())
return false
end
Gave me an error like that:
Code:
-- Plugins/Portal/portal_main.lua:73: attempt to index local 'Player' (a number value)
The OnBlockPlace() callback has a completely different signature since the repacketing; I thought I've written that somewhere, but obviously I've forgotten.
These are the signatures in C++, they should be directly equivalent to the callbacks (taken from cPlugin_NewLua.h, left out the C++ specifiers):
09-03-2012, 05:41 AM (This post was last modified: 09-03-2012, 05:45 AM by Taugeshtu.)
Woooooow. I found literally crazy bug! (r816)
After I apply /ptoggle command (this enables point selection with a wooden sword) and select a region I can't enter any single command! I mean, I send them to chat window and they are gone, but I get no confirmation about the fact that they are accepted or executed.
More than that, even usual chat messages can't be sent!
That's totally weird.
I upload an unfinished plugin in case someone needs to reproduce the bug. Just follow my steps:
1. Install plugin. You should know, how;
2. Launch MCS with it, connect to it (don't forget to give yourself a "portal.create" permission!);
3. Type in chat: "/ptoggle". You should get a message, saying that your wooden sword will now act as region selection tool;
4. Left-click on any block, right-click on any block;
5. You're here. Try to do ANYTHING chat-related - you won't get response.
P.S.
Looks like whenever I'm going with plugins - I got striked by lighting
Sorry for the missing nightbuilds, the internet connection at my home died so my computer couldn't upload the nightbuilds. And I wasn't here to fix things until now. A fresh nightbuild is on its way.