ColonyPlusPlus / ColonyPlusPlus-mod

The code behind the scenes code for the ColonyPlusPlus mod
GNU General Public License v3.0
1 stars 4 forks source link

Moderation/Admin commands #68

Open tommykent1210 opened 7 years ago

tommykent1210 commented 7 years ago

Things like /ban /kick and probably locating players. Once the client side API comes out tracking who placed a block would be nice too

tommykent1210 commented 7 years ago

/unban would be useful too, also logging of bans. Also being able to give a ban reason would be useful

tommykent1210 commented 7 years ago

Logging bans should be pretty easy, just write to a file called bans.json, have it contain an array of objects like:

[
  {
    "id": "12345678901234567",
    "reason": "being an ass",
    "bantime": "01/01/2001 01:01"
  },
  {
    "id": "12345678901234568",
    "reason": "greifing",
    "bantime": "01/01/2001 01:01"
  },
] 

Simply load it to a structure at run time, add the bans, and save on world save.

tommykent1210 commented 7 years ago

Missing the ability to add a ban reason! @PhilipBernhardsson