🛠️OZ - Admin Utils v0.4.0| Event Tracking

  • Hey there,


    we had some griefers on our server and i was thinking about solutions. With my LandClaim plugin, players can protect their property but not their animals, there is simply missing an ownership. So i tested some things and finally got a solution. I've made a new plugin for that, where i will add more utility stuff like that in the future. I also moved the "sleep announcement" feature from OZTools to this plugin and enhanced it. (OZTools was never supposed to have any game relevant functionality, but only for sleep announcement i was not willed to create a plugin)

    Download
    https://github.com/Devidian/rw-plugin-oz-admin-utils/releases

    Remember also to install latest OZ - Tools from

    https://github.com/Devidian/rw-plugin-oz-tools/releases

    OPTIONAL for Discord features

    https://github.com/Devidian/rw…-discord-connect/releases

    ====================================================================================================

    Current Features

    Mount protection

    • if you first interact with a mount, it will be renamed to [playerId]::[playerName] to claim it
    • if someone interacts with the mount that has not his mount-name-prefix (id::) he gets warned
      • further interactions will punish the thief harder and harder until kick/ban
    • punishment can be turned of in settings by punishMountTheft
    • WARN if editnpc is enabled for everyone, someone can remove protection by renaming it (have to fix this)
      • but the "owner" can change the name after his ownership prefix without loosing ownership
    • OPTIONAL DiscordConnect
      • if you also have installed DiscordConnect you can turn on enableDiscordTheftReport
      • Discord event will be send on following punishments: kill, kick, ban
      • Discord target ChannelId can be set with discordTheftReportChannelId

    Animal protection

    • Animal protection hinders players to pickup small animals in an area where they don't have permissions to pickup items
    • Players will get a message if they try to pickup an animal

    Sleep Announcement

    • If a player lays down in bed between 21:00 and 07:00, all players get informed that this player wants to sleep
      • can be turned on/off by enableSleepAnnouncement
    • Kick afk player
      • If a player is afk for a short time (can be configured by afkPlayerSleepWarnSeconds) he will be warned (default:30s)
      • If a player is afk for a longer time (can be configured by afkPlayerSleepTimeoutSeconds) he will be kicked with a reminder that players wanted to sleep
      • can be turned on/off by enableSleepKickAFKPlayer

    Event tracking / logging

    • Logging Events to server logs and (optional) to discord
      • player deaths
      • player connect / disconnect
      • player removes object
      • player destroys object
      • npc death by non player
      • mount death by player
      • (all) animal death by player
      • season changes
      • weather changes
      • player teleport events
    • Each event can be enabled individual
    • For each event a different channel Id can be set

    Images

  • Devidian

    Changed the title of the thread from “🛠️OZ - Admin Utils v0.3.0| First Public release” to “🛠️OZ - Admin Utils v0.4.0| Event Tracking”.
  • Es setzt sich fort, sonst wäre es zu milde :D


    Aber ich erarbeite gerade eine Gefängnis Variante und dann können Admins entscheiden welche sie nutzen wollen - oder keine dann passiert halt nichts das Pferd bleibt ja trotzdem sicher.

  • Es setzt sich fort, sonst wäre es zu milde :D

    Find ich vollkommen o.k. ^^ ... mir fällt grad ein: kann man auch eine Obergrenze an Pferden einfügen die in Besitz genommen werden können?

    Kommt vor, dass jemand mit nem Sattel reist und sich unterwegs ein Pferd nimmt welches dann wieder frei gelassen wird. Oder auch damit niemand durch die Gegend läuft und mal eben alle Pferde für sich beansprucht.

  • Das ist etwas kompliziert, dafĂĽr mĂĽĂźte ich dann doch eine extra Datenbank anlegen in der der Besitz gespeichert wird. Ich hoffe ja das red51 es ermöglicht den Besitzstatus im npc zu setzen und zu lesen.
    Dann wäre es auch sicher möglich sowas wie player.getOwnedNpcs([Type?]) zu implementieren.

    Es wäre nur die Frage wann ein nächstes Update dazu kommt ;)


    Aktuell gibt es World.getAllNpcs() aber ich weiss nicht ob das so günstig wäre bei jeder Interaktion abzufragen.

    Schöner wäre da schon World.getAllNpcsByPlayer(id). Natürlich könnte ich auch hier als Workarond wieder eine Abfrage beim start des servers machen und alle Besitztümer cachen, bis sich da an der API was tut. Ich überlege mir da vielleicht noch was.

  • Der Kreativteil meines Gehirns hatte gerade folgende Idee: Eine option fĂĽr admins, das tiere in besitz nehmen nur in Areas möglich ist, in denen der spieler eine bestimmte permission hat wie area_addplayer das wäre dann unabhängig zum landclaim plugin und auch mit anderen areas kompatibel.

  • Ja genau, und es ist schnell implementiert, quasi schon fertig, hab es auf den testserver geladen aber testen kann ich das auch erst heute abend. Hab auch gleich eine option hinzugefĂĽgt das claiming von pferden zu deaktivieren falls man es gar nicht nutzen möchte

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!