MarriageMaster icon indicating copy to clipboard operation
MarriageMaster copied to clipboard

Requests for surname changes

Open MotikaCraft-TheJoshua opened this issue 9 months ago • 3 comments

Feature request

Feature description Add option in config or requirement always when priest/player who is allowed to set surnames, try to set someone's surname, either 1 of them or both of them need to agree with that surname to be set, maybe the best would be to have next config options

surname-request-askplayers: true/false # when priest try to set someone's surname, if this is true, it will require confirmation by target player/s
surname-request-askplayers-both: true/false # if this is true, then both players who are married to each other need to confirm surname change requested by priest

How the feature is useful Because it will prevent priests randomly setting player's surnames to something bad, it's easy to exploit without this SO much

MotikaCraft-TheJoshua avatar May 03 '25 10:05 MotikaCraft-TheJoshua

@GeorgH93 @OsxProject i please ask you to check this out ! i think this is extremely good and important "security" (anti-abuse!) feature

MotikaCraft-TheJoshua avatar Jun 24 '25 16:06 MotikaCraft-TheJoshua

Unfortunately I haven't had the time to test it yet, but, this build should have the feature you are asking for. Please don't hesitate to try it and provide feedback on it.

GeorgH93 avatar Aug 08 '25 16:08 GeorgH93

@GeorgH93

hello i have tested this i used latest build from spigotmc

this is my config part

Marriage:
  # Defines if players need to get married by a priest or if they can marry each other on their own.
  RequirePriest: true
  # This option defines if a priest is needed to divorce 2 players or if they can divorce on their own.
  # Options: true, false, auto (auto will copy the RequirePriest value)
  DivorceRequiresPriest: false
  # Max numbers of partners that a player can have. Values < 1 disable the limit.
  MaxPartners: 1
  # This setting disables the "/marry setpriest" command players can still be promoted to a priest with the "marry.priest" permission.
  DisableSetPriestCommand: true
  Surnames:
    Enable: true
    Force: false
    # Surname requirements
    AllowColors: false
    AllowedCharacters: A-Za-z
    BannedNames: []
    # Values below 3 will be set to 3
    MinLength: 3
    # Values below the in length will be set to the min length
    MaxLength: 16
    # Options: None, Player, BothPlayers
    Confirmation: BothPlayers
  # Defines if marriages should be announced to all players.
  AnnounceOnMarriage: true
  # Defines if divorces should be announced to all players. auto mirrors the AnnounceOnMarriage setting
  AnnounceOnDivorce: auto
  Confirmation:
    Enable: true
    AutoDialog: true
    BothPlayersOnDivorce: false
    OtherPlayerOnSelfDivorce: false

It does not work, anyone can change anyone's surname without confirmation

I have also tried setting "bothplayers"

MotikaCraft-TheJoshua avatar Dec 05 '25 17:12 MotikaCraft-TheJoshua

This version might fix it. https://ci.pcgamingfreaks.at/job/MarriageMaster/560/artifact/artifacts/MarriageMaster-2.9-SNAPSHOT-Release.jar

GeorgH93 avatar Feb 12 '26 23:02 GeorgH93