Posts by Devidian

    Sure, in most cases its enough to save references e.g. player.getDbID(). I didnt see that Discussion before, sorry. I could also create a meta plugin that uses the npc id and adds key/value attributes but then every other plugin would need to use this plugin to get any data.
    I just looked up the npc database with my vscode sqlite viewer plugin.


    I see owner already exists as column, for my current issue it would be enought to have getter and setter for this. That might be easier to implement for the next update. I mean i could also use WorldDatabase and execute my own sql on it but i dont like to manipulate vanilla dbs from plugins.

    btw. is there a way to change any existing radial menu? For example when i want to add something like "rename mount" so i dont need to set editnpc true. Or to stay in the current case "claim mount" and "release mount".

    If i understand you correctly, your problems seem to occur when admins are present and teleport to players/admins using the interface? The effect is massive lagging? Maybe it would be helpful to post server logs, there could be some Exception spam in the logs from plugins that take down the server performance. I dont use any of those plugins so i have no experience what else it could be, but a server-log should help.

    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

    I am currently creating a new Plugin that includes mount protection, because we had some griefers in the past days and i dont like searching for my horse every time and also i dont want to jail my animals to protect them, and also i dont want to prevent everyone from entering my property. So my current solution is saving a player ref in the npc name and it works well but i would like to have some persistent attributes i can add to npcs to make this somehow more elegant.

    In the api reference i found nothing else i could use.

    Nach deinem Besuch war es klar. es gilt nicht für neue Spieler sondern für neue chunks. Es war kein einziger Eintrag von dir in der Datenbank. Habe dann auch im code direkt die Stelle gefunden an der ich vergass einen neuen chunk Eintrag zu erstellen. v0.5.2 sollte das beheben, vielleicht kannst du das nochmal bestätigen, habe es auf meinem Server ausgerollt eben.

    Okay, ich hab von meinem Server noch keine Beschwerden gehört. Hast du konkrete reproduktionsschritte?

    Auf dem testserver ist manchmal die versionsnummer nicht korrekt da ich dort den kompillierten code direkt hochlade, da sollte also 0.5.1 sein eigentlich. Habe noch keine weiteren Änderungen vorgenommen.

    Das mit dem neuen Spieler kann ich nicht so gut testen, sollte aber eigentlich keine Probleme machen...


    I went on today and saw that the claim box shows the name and owner status. I was looking around for the "add player" option but was unable to find it. So, JUST AN IDEA, what about something like this? being able to add on online and offline players that have been on your server?rising-world.net/attachment/45063/

    The List shows only players online. If a player is online you can change their default permission to something else. Working with offline players is not impossible but different to handle, so i did not implement something like that yet. I dont really see the use-case here, only if ppl are playing in different timezones and are never online at the same time 🤣

    Dadurch das Blaupausen quasi umsonst sind, finde ich schon das es insgesamt zu einfach ist an ressourcen zu kommen, bzw. finde ich das das sammeln von ressourcen eher nebensächlich ist, was sehr schade ist, da ich gerne Ressourcen sammel ;) , klar kann ich Blaupausen verbieten aber bei komplexen Wiedeholungsmustern wäre das schon extrem doof.

    Ich würde mir deshalb eine option wünschen das die Blaupausen Material kosten (so auf permission ebene) Beim erstellen einer Blaupause können ja die Materialien berechnet werden und mit in den Blueprint geschrieben werden - macht ja keinen Sinn das jedes mal beim benutzen zu berechnen :)

    Ich möchte hier anfügen das wenn man ein Ferkel aufnimmt wird es zu einem Item und dann beim ablegen zu einem neuen NPC. Ich wünsche mir das die per editnpc gespeicherten daten auch im item gespeichert sind. Ich hatte mir ein Ferkel umbenannt in "Babe" und es auf nicht wachsen und unverwundbar eingestellt, als ich es mitgenommen habe waren die Einstellungen weg 😢

    Fixed mit v0.5.1, war eine Zeile zu viel bzw zu wenig. Beim rebuild des index hat er vorher den cache gelöscht, aber ohne den Haupt cache kann man keinen index aufbauen.
    Es war quasi die ganze Zeit so als hätte man mit einer neuen Datenbank gespielt.
    Aber zum Glück hab ich das Plugin so gebaut das man theoretisch das Plugin deinstallieren kann und die Zonen trotzdem geclaimt bleiben.