Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Pretty plugins' functions calling
Post: RE: Pretty plugins' functions calling

xoft Wrote: (01-15-2018, 01:19 PM) -- Compared to calling within a single plugin, it will be much worse. It's not about the Lua plumbing that you put together, it's about the actual inter-plugin call...
TC1061 Plugin Discussion 4 3,128 01-15-2018, 01:45 PM
    Thread: Pretty plugins' functions calling
Post: RE: Pretty plugins' functions calling

I think perfomance will not be terrible.
TC1061 Plugin Discussion 4 3,128 01-15-2018, 03:07 AM
  Rainbow Thread: Pretty plugins' functions calling
Post: Pretty plugins' functions calling

This code will help to call functions of other plugins, like they're just libraries: [shcode=lua]PF={} local function hasPlugin(name)  return cPluginManager:DoWithPlugin(name,function(Plugin)    i...
TC1061 Plugin Discussion 4 3,128 01-13-2018, 03:46 PM
  Exclamation Thread: How to override physics?
Post: How to override physics?

How to override physics in Cuberite? Is there any hook to do this? For example: Code: -- IsFallingEnabled=true function OnBlockFalling(Block,x,y,z) if IsFallingEnabled then  return false -- ...
TC1061 Development 1 1,852 01-13-2018, 03:12 PM
    Thread: Leetcraft | Survival - Free Build | Running with Cuberite
Post: RE: Leetcraft | Survival - Free Build | Running wi...

NiLSPACE Wrote: (10-21-2017, 08:58 PM) -- Probably for security. If a spammer or hacker is banned he can just log in with a new account or even a new IP using a proxy if authentication is turned off....
TC1061 Servers 5 3,874 01-10-2018, 02:17 PM
    Thread: Are there any negative side effects to setting hooks this way?
Post: RE: Are there any negative side effects to setting...

There is another solution. You can store all callbacks in a hooks table, and register all callbacks from this table, for example: Code: -- hooks={} function hooks.tick(e,d) -- Will be registered as H...
TC1061 Plugin Discussion 11 6,185 01-09-2018, 03:15 AM
    Thread: ToDo Lists
Post: RE: ToDo Lists

Why explosion damages players in creative mode?  :huh: I even made a plugin what fixes it, because it's wery annoying. This plugin fixes knockback too. Here the code: Code: -- local hooks={} lo...
TC1061 Development 18 18,707 01-09-2018, 02:43 AM