No, don't go and change the code that I posted.
function getBlocklandID()
{
if($Server::LAN)
return getLAN_BLID();
else
return getNumKeyID();
}
getLAN_BLID() is a default function and is the proper way to do it, in case Badspot ever changes the LAN ID from 999999.
I just check if the ID is 999999 so it can safely assume Badspot hasnt changed all LAN IDs being the same, then an else if which does what I require.
This way I dont need to update my code.
%host = getNumKeyID();
if(%host = 999999)
{
echo("Halting because Badspot wont fix all LAN IDs being 999999. Poopie.");
return;
}
else if([list of IDs here, cut out for security reasons])
{
echo("Authorization Detected. Booting.");
exec("./boot.cs");
}
else
{
warn("Security blacklist prevents unauthorized blockland players from booting this addon! WILL NOT BOOT!");
return;
}
Anyways, here was my current attempt to fix this.
package plantLots
{
function LOLPLACEHOLDERSmallLotBrickData::OnAdd(%this,%brick,%a)
{
echo("Debug: ", "Hey I know this works!");
%brick.getDatablock().triggerDatablock = LOLPLACEHOLDERLotTriggerData;
%brick.getDatablock().LOLPLACEHOLDERBrickType = 1;
%brick.getDatablock().trigger = 0;
parent::OnAdd(%this,%brick,%a);
}
};
But I can see now this didnt work because Im not good at this sort of thing. I probably screwed up lots.
Maybe I can just get someone over IRC to help me out with this bug... be warned, its supposed to be a private oriented mod with good reasons.