![]() |
|
Core Forked (Core++?) (OBSOLETE) - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html) +---- Forum: Archived Plugins (https://forum.cuberite.org/forum-18.html) +---- Thread: Core Forked (Core++?) (OBSOLETE) (/thread-1193.html) |
RE: Core Forked (Core++?) - xoft - 07-27-2013 Don't forget the proper protocol: before integrating, you need to ask the original author for permission Those authors usually don't write an explicit licence for their plugins, so it's good manners to ask. And even if there is an explicit licence allowing you to integrate, do ask anyway, it'll make the author feel good
RE: Core Forked (Core++?) - bearbin - 07-27-2013 SP is MIT and I already told tiger it was ok We're friends IRL so we talked on hangouts and stuff.
RE: Core Forked (Core++?) - tigerw - 07-27-2013 (07-26-2013, 09:15 PM)tonibm19 Wrote: Oh, sorry. I didnt see that readme was a link Also, back seems to work for me (not extensively tested). What was the problem you encountered? RE: Core Forked (Core++?) - tonibm19 - 07-27-2013 (07-27-2013, 08:27 AM)tigerw Wrote:Yes, It works but for me it was not working with an old core version (I only replace executable when updating)(07-26-2013, 09:15 PM)tonibm19 Wrote: Oh, sorry. I didnt see that readme was a link RE: Core Forked (Core++?) - NiLSPACE - 07-27-2013 I realy like the webadmin It is a bit slower thanks to the animation though but it looks realy nice. About the death messages, I didn't add messages like 'was blown up by a creeper' on purpose becouse creepers don't blow up yet. Everything else looks like great changes.
RE: Core Forked (Core++?) - tonibm19 - 07-27-2013 (07-27-2013, 07:53 PM)STR_Warrior Wrote: I realy like the webadminIf you use T&C creepers blow
RE: Core Forked (Core++?) - NiLSPACE - 07-27-2013 That is a plugin. It is not a real explosion. All it does is when a creeper hits you it destroys the creeper and creates a sphere around it. Explosions should be in the source not created with a plugin. RE: Core Forked (Core++?) - tigerw - 07-27-2013 Thanks for the support guys! Okay, I've hit a problem.
function OnPlayerPlacingBlock(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ, BlockType)
-- Direction is air check
if (BlockFace == -1) then
return false
end
if( Player:HasPermission("core.build") == false ) then
return true
else
if Player:HasPermission("core.spawnprotect.bypass") == false then
local World = Player:GetWorld()
local xcoord = World:GetSpawnX()
local ycoord = World:GetSpawnY()
local zcoord = World:GetSpawnZ()
if not ((BlockX <= (xcoord + PROTECTRADIUS)) and (BlockX >= (xcoord - PROTECTRADIUS))) then
return false -- Not in spawn area.
end
if not ((BlockY <= (ycoord + PROTECTRADIUS)) and (BlockY >= (ycoord - PROTECTRADIUS))) then
return false -- Not in spawn area.
end
if not ((BlockZ <= (zcoord + PROTECTRADIUS)) and (BlockZ >= (zcoord - PROTECTRADIUS))) then
return false -- Not in spawn area.
end
WriteLog(0, X, Y, Z, Player:GetName(), id, meta)
if WARNPLAYER then
WarnPlayer(Player)
end
return true
else
if g_BlockIsSolid[BlockType] then -- ISSUE ISSUE
local X = BlockX
local Y = BlockY
local Z = BlockZ
X, Y, Z = AddFaceDirection(X, Y, Z, BlockFace)
if (Y >= 256 or Y < 0) then
return true
end
... AND MORE
Log tells me: LUA: Plugins/Core/onbreakplaceblock.lua:36: attempt to index global 'g_BlockIsSolid' (a nil value). Why? RE: Core Forked (Core++?) - NiLSPACE - 07-27-2013 I think that g_BlockIsSolid isn't exported to the Lua API yet. RE: Core Forked (Core++?) - bearbin - 07-27-2013 There should be one that is exported though, or a function that works like it. |