Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
July 16, 2019, 04:30:37 pm

Author Topic: ZED V2.0 - The recode!  (Read 46410 times)

IZED

  • Donator
  • Newbie
  • *****
  • Posts: 45
    • View Profile
ZED V2.0 - The recode!
« on: December 17, 2013, 09:28:55 pm »
Hey folks,
I've completely rewritten ZED to provide better compatibility, more stability and an external API.
The result is called ZED V2.0.

What is ZED ?
ZED is a base for other programmers.
It extends the jc2mp API and provides more functionality.

Main features:
 - Permissions-System
 - Data-saving in json ( Subject to change )
 - Many changed events.
 - Customizable Scoreboard
 - Command event.
 - New Chat which supports multi-color prints.
 - External API


Where are Essentials ? Groups ? Warps ?
Since ZED's API is now completely external, I took them out and will release them separately.


How to install ?
* Download the Sourcecode from github as .zip
* Create a new folder in scripts called "ZED"
* Drag'n'drop all the content from the .zip into the new created folder.
* Type in "load ZED" into the console or restart the server.
* Tip: If you are using other modules that use the chat to print out messages, install ZEDTunnel.


What is ZEDTunnel ?
ZEDTunnel is a module addition you can drag'n'drop to every external module (eg. derby, freeroam etc.) and make it magically use ZED's Chat System.


How to install ZEDTunnel ?
* Download ZEDTunnel
* Open the ZIP-Archive
* Open your jcmp/scripts folder
* Drag'n'Drop the shared folders out of the ZIP-Archive into every module in your scripts folder.


Want to support me ? Now you can:



Where can I download ZED ?
Head over to Github for that.


How can I make plugins for ZED ?
I'm working on a wiki, which will be found here: ZED Wiki
But until then, you can learn by exploring my other plugins:
Groups | Essentials
« Last Edit: December 24, 2013, 05:37:40 am by IZED »

Tessius

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: ZED V0.5 - Plugins + Permissions + Essentials + Groups
« Reply #1 on: December 17, 2013, 09:40:17 pm »
How do you assign a player as Admin or Owner?

IZED

  • Donator
  • Newbie
  • *****
  • Posts: 45
    • View Profile
Re: ZED V0.5 - Plugins + Permissions + Essentials + Groups
« Reply #2 on: December 17, 2013, 09:54:51 pm »
Go into scripts/ZED/data/player and look for the file of the player, then change his group to Owner/Admin

If you are already Admin/Owner and have the "setgroup" permission, you can use "/setgroup <player> <group(case sensitive)>" ingame.

Pi

  • Donator
  • Newbie
  • *****
  • Posts: 15
    • View Profile
Re: ZED V0.5 - Plugins + Permissions + Essentials + Groups
« Reply #3 on: December 17, 2013, 10:04:17 pm »
So when i do /ban it shows the kick help message and actually kicks them (instead of ban) and when i use /kick it bans them but shows the kick message. Im confused.

IZED

  • Donator
  • Newbie
  • *****
  • Posts: 45
    • View Profile
Re: ZED V0.5 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #4 on: December 17, 2013, 10:36:58 pm »
So when i do /ban it shows the kick help message and actually kicks them (instead of ban) and when i use /kick it bans them but shows the kick message. Im confused.
I'm sorry for this, fixed it.

+ Also added a warp plugin.

Pi

  • Donator
  • Newbie
  • *****
  • Posts: 15
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #5 on: December 17, 2013, 10:38:09 pm »
Is there anyway you can make it so all users are set to the user group by default? They don't currently seem to so just wondering ;o Also, Is it possible for groups to have a name tag infront of there name ingame? (But also a option user not to have a user tag because thats just silly)
« Last Edit: December 17, 2013, 10:40:10 pm by Pi »

BOTT-E

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #6 on: December 17, 2013, 10:43:43 pm »
Which of the 2 downloads should i use?

Pi

  • Donator
  • Newbie
  • *****
  • Posts: 15
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #7 on: December 17, 2013, 10:48:15 pm »
Another suggestion. Is it possible to beable to reload the lua scripts from ingame. And also. If you use commands are not used in this it spams out 'command not recognised' for some reason. Not really a bug just not needed.
« Last Edit: December 17, 2013, 11:01:03 pm by Pi »

BOTT-E

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #8 on: December 17, 2013, 11:08:00 pm »
How do you actually add someone to the admin group

IZED

  • Donator
  • Newbie
  • *****
  • Posts: 45
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #9 on: December 17, 2013, 11:10:44 pm »
How do you actually add someone to the admin group
Go into scripts/data/groups/Admin.txt and change the permissions as you like it.


Another suggestion. Is it possible to beable to reload the lua scripts from ingame. And also. If you use commands are not used in this it spams out 'command not recognised' for some reason. Not really a bug just not needed.
Luareload from within the script is a good idea, but is not possible atm.
Oh and the "Command not found" error is because the other modules are not using my plugin system.

I made this module to build a base for other plugins and to provide a standardization so that not every single module has different needs and stuff.

I'll make more plugins for this and I suggest other people do so too to prevent a fruit salat of incompatible modules in jc-mp.


After polishing more basics and making more simple plugins, I'll make an RP plugin for this ;)

KungfuBeer

  • Donator
  • Jr. Member
  • *****
  • Posts: 67
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #10 on: December 17, 2013, 11:48:53 pm »
How do you actually add someone to the admin group
Go into scripts/data/groups/Admin.txt and change the permissions as you like it.

Does this mean to change the name Admin to the player name or the Steam GUID, and groups from "User" to "Admin"?

Sorry, I don't understand how.

IZED

  • Donator
  • Newbie
  • *****
  • Posts: 45
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #11 on: December 18, 2013, 12:07:55 am »
How do you actually add someone to the admin group
Go into scripts/data/groups/Admin.txt and change the permissions as you like it.

Does this mean to change the name Admin to the player name or the Steam GUID, and groups from "User" to "Admin"?

Sorry, I don't understand how.

I'm sorry, I did read "something" the first time.

To add someone to a group do the following:
Go into scripts/ZED/data/player and look for the file of the player, then change his group to Owner/Admin

If you are already Admin/Owner and have the "setgroup" permission, you can use "/setgroup <player> <group(case sensitive)>" ingame.

ROODAY

  • Sr. Member
  • ****
  • Posts: 298
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #12 on: December 18, 2013, 12:18:08 am »
how do i do this? Do I put owner in the brackets or what?

Mathew9R

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #13 on: December 18, 2013, 12:21:00 am »
So I'm just wondering, How do I default every player on my server to user so they can use all the normal commands like before?

Also, When new players join, Do they automatically become a User?

Another thing, Why are they not allowed to use tp and derby?
« Last Edit: December 18, 2013, 12:23:33 am by Mathew9R »

Gaveroid

  • Donator
  • Jr. Member
  • *****
  • Posts: 56
    • View Profile
Re: ZED V0.6 - Plugins + Permissions + Essentials + Groups + Warps
« Reply #14 on: December 18, 2013, 12:26:13 am »
How do you actually add someone to the admin group
Go into scripts/data/groups/Admin.txt and change the permissions as you like it.


Another suggestion. Is it possible to beable to reload the lua scripts from ingame. And also. If you use commands are not used in this it spams out 'command not recognised' for some reason. Not really a bug just not needed.
Luareload from within the script is a good idea, but is not possible atm.
Oh and the "Command not found" error is because the other modules are not using my plugin system.

I made this module to build a base for other plugins and to provide a standardization so that not every single module has different needs and stuff.

I'll make more plugins for this and I suggest other people do so too to prevent a fruit salat of incompatible modules in jc-mp.


After polishing more basics and making more simple plugins, I'll make an RP plugin for this ;)

I like your mod so far, but I've had to remove it from the server due to the command not found error. Could you tell us how to disable your plugin system so that doesn't happen? Or, can you upload an edited version? Since most mods don't use your system as of yet...

If this issue was fixed, I'd continue to use your mod on my server. It looks like a mod every server should definitely have!

EDIT: I was looking through your code, and in the /server/ directory, there's an init.lua file that looks like it has a lot of code that may be your plugin system. Will removing that file (or at least some portion of it) fix the errors and remove the system?
« Last Edit: December 18, 2013, 12:28:46 am by Gaveroid »