Core
#1
Implements some of the basic commands needed to run a simple server. This plugin is included with Cuberite by default.

Commands and permissions: https://github.com/cuberite/Core/blob/master/README.md
Source: https://github.com/cuberite/Core
Download: https://github.com/cuberite/Core/archive/master.zip
Reply
Thanks given by:
#2
Releasing a plugin for a Server version not available is somewhat weird!
Huh

greets,
Tybor
Reply
Thanks given by:
#3
(02-22-2011, 03:02 AM)Tybor Wrote: Releasing a plugin for a Server version not available is somewhat weird!
Huh

greets,
Tybor

Its because were awesomeTongue expect it soon, sorry for the inconvenience.

Edit: just so you know, the reasons behind this are
for this core; its because there's now a better way to make cmds, which is made available beforehand so plugin builders can already see how it works.
for my plugin; the reason u need 173 is that 172 has a little bug with vector3d, that didnt really surface untill i made said plugin.
Reply
Thanks given by:
#4
(02-22-2011, 03:02 AM)Tybor Wrote: Releasing a plugin for a Server version not available is somewhat weird!
Huh

greets,
Tybor

Some people that made mods for Hey0 did it. They got their hands on dev versions :O
I can hand out dev versions of MCServer over skype/msn/email to some people that need it, but not in public due to a guaranteed influx of "wtf server crash" and "hey this don't work!" commentsTongue
Besides I was just trying to fill this forum a bit, haha
Reply
Thanks given by:
#5
Updated this to the version that came with r176
Reply
Thanks given by:
#6
(02-22-2011, 06:13 AM)FakeTruth Wrote:
(02-22-2011, 03:02 AM)Tybor Wrote: Releasing a plugin for a Server version not available is somewhat weird!
Huh

greets,
Tybor

Some people that made mods for Hey0 did it. They got their hands on dev versions :O
I can hand out dev versions of MCServer over skype/msn/email to some people that need it, but not in public due to a guaranteed influx of "wtf server crash" and "hey this don't work!" commentsTongue
Besides I was just trying to fill this forum a bit, haha
i could use one i mess around alot, wouldnt mind i could make a bunch knowing what i have to work with, distroyed123@hotmai.com/gmail/yahoo
Reply
Thanks given by:
#7
Updated to Core V6.

Now it has a whitelist with WebAdmin interface

[Image: 76772WhiteList.png]
Reply
Thanks given by:
#8
how do i download plugins i cant find the button on the page
Reply
Thanks given by:
#9
Attached File(s)
.lua Core.lua (Size: 23.09 KB / Downloads: 102)
Reply
Thanks given by:
#10
Core needs a /give command.

Code:
function HandleGiveCommand( Split, Player )
  if  #Split < 3 then
        Player:SendMessage( cChatColor.Green .. "Usage: /give [PlayerName] [ItemID/Name] <Amount>" )
        return true
    end
  
  local World = cRoot:Get():GetWorld()
    local GivePlayer = World:GetPlayer( Split[2] )
    
  if GivePlayer == nil then
        Player:SendMessage( cChatColor.Green .. "Player " ..Split[2].. " not found." )
        return true
  end
  
  ItemID = Split[3]
  ItemMeta = 0
  sPos = string.find(Split[3], ":")
  if (sPos ~= nil) then
    ItemID = tonumber(string.sub(Split[3], 1, sPos-1))
    ItemMeta = tonumber(string.sub(Split[3], sPos+1))
  else
      ItemID = tonumber(Split[3])
  end
  if( ItemID == nil or not isValidItem( ItemID ) ) then
      Player:SendMessage( cChatColor.Green .. "Item " ..Split[3].. " not found." )
      return true
    end
    
    ItemAmount = 1
    if( #Split >= 4 ) then
        ItemAmount = tonumber(Split[4])
        if( ItemAmount == nil or ItemAmount < 1 or ItemAmount > 512 ) then
            Player:SendMessage( cChatColor.Red .. "Invalid Amount !" )
            return true
        end
    end

    local NewItem = cItem( ItemID, ItemAmount , ItemMeta)
    if( GivePlayer:GetInventory():AddItem(NewItem) == true ) then
        Player:SendMessage( cChatColor.Green .. "Gave item ("..ItemID..":"..ItemMeta..") to "..Split[2].."." )
        LOG("Gave " .. GivePlayer:GetName() .. " " .. ItemAmount .. " times " .. ItemID )
    else
        Player:SendMessage( cChatColor.Red .. "Not enough space in inventory !" )
    end
  return true  
end
Reply
Thanks given by:




Users browsing this thread: 17 Guest(s)