Essentials for MCServer (2)
#21
Like that
Code:
kits:
  tools:
    delay: 10
    items:
      - 272 1
      - 273 1
      - 274 1
      - 275 1
  dtools:
    delay: 600
    items:
      - 277 1 digspeed:3 name:Dwarf lore:Diggy|Diggy|Hole
      - 278 1 efficiency:1 durability:1 fortune:1 name:&4Gigadrill lore:The_drill_that_&npierces|the_heavens
      - 279:780 1
      - $500
  tophat:
    delay: 600
    items:
      - 298 1 color:255,255,255 name:Top_Hat lore:Good_day,_Good_day
  color:
    delay: 6000
    items:
      - 387 1 title:&4Book_&9o_&6Colors author:KHobbits lore:Ingame_color_codes book:Colors
Sounds difficult to me Undecided
Reply
Thanks given by:
#22
How about this, then?
kits =
{
  tools =
  {
    delay = 10,
    items =
    {
      {272, 1},
      {273, 1},
      {274, 1},
      {275, 1},
    },
  },
  dtools =
  {
    delay = 600,
    items =
    {
      ...
    },
  },
}
Notice that this "config" is actually a Lua source code, so you can take full advantage of that, and use Lua's loadfile() to do all the work for you. That's how Gallery processes its config file, have a look: https://github.com/mc-server/Gallery/blo...#L253-L276
Reply
Thanks given by:
#23
I'm glad to say now essentials supports portals.
Portals teleport you to warps
HOWTO:
Create a portal how you want, you can be creative.
2 blocks below the portal, place a sign. Syntax is:
[Portal]
Warp
Reply
Thanks given by:
#24
hi i have a problem i have a spam on console witch number 3
do you can help me
sory for my englis i from poland Smile
Reply
Thanks given by:
#25
Fixed.
Reply
Thanks given by:
#26
Hey the /spawnmob command is giving me an error, I was trying to create the same command and was getting the same error. (I found your plugin trying to figure out how to fix mine xD)

The error is:
Code:
Warn [08:03:35] LUA: Plugins/Essentials/moderator.lua:14: error in function 'SpawnMob'.
     argument #5 is 'number'; 'eMonsterType' expected.

Warn [08:03:35] Stack trace:
Warn [08:03:35]   [C](-1): SpawnMob
Warn [08:03:35]   Plugins/Essentials/moderator.lua(14): (no name)
Warn [08:03:35] Stack trace end
Warn [08:03:35] Error in plugin Essentials calling function <callback>()
Warn [08:03:45] LUA: 2 - Plugins/Essentials/moderator.lua:24: error in function 'SpawnMob'.
     argument #5 is 'number'; 'eMonsterType' expected.
Reply
Thanks given by:
#27
Weird, it worked before.
Ill have a look at it later.
Reply
Thanks given by:
#28
(10-05-2014, 11:15 PM)tonibm19 Wrote: Weird, it worked before.
Ill have a look at it later.

Thanks, I figured it did because that was the only way I've seen to spawn mobs xD

It seems more like a bug with MCServer not the way the plugin is coded, I dont know exactly how to report that so if you want maybe push it to them.
Reply
Thanks given by:
#29
There was a change in the server code that moved the cMonster::eType into eMonsterType; I asked the author specifically to handle this in Lua bindings, but he seems to have forgotten about it. There's only some glue declaration that doesn't work.
Reply
Thanks given by:
#30
(10-06-2014, 01:27 AM)xoft Wrote: There was a change in the server code that moved the cMonster::eType into eMonsterType; I asked the author specifically to handle this in Lua bindings, but he seems to have forgotten about it. There's only some glue declaration that doesn't work.
Then, can I do anything in the plugin code? or should I wait for a fix in MCS?
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)