Addgroup mistaken by Setgroup #157


  • New
  • Defect
Open
Assigned to _ForgeUser1494830
  • _ForgeUser7970022 created this issue Jul 24, 2014

    Hi,

    From what it looks like, there seems to be a problem with the "addgroup" command. Specifically, it looks like there's a compatibility problem with Buycraft, in which all "Addgroup" commands are being replaced with "Setgroup".

    Player A is currently ranked as "Guest" and buys the Sponsor package from our donation store. The following command is then executed: "/perm player PlayerA addgroup Sponsor". When the user receives his package from the Buycraft system, it seems like his "Guest" rank has completely disappeared (As stated by /perm player PayerA groups), and has been replaced by the Sponsor rank. Thus, it looks like the setgroup command was executed instead.

    No errors, no logs. Using version "1.3beta1".

    Config: http://hastebin.com/xoburuvowi.vala

    Thanks.

  • _ForgeUser7970022 added the tags New Defect Jul 24, 2014
  • _ForgeUser1494830 posted a comment Jul 24, 2014

    If "Guest" is your default group (which your config does show), then this is actually the expected behavior.

    The default group is basically the group your are considered to be in when you have no explicitly assigned groups.

    So when you "addgroup Sponsor" to someone who appears to be in "Guest" (because they are not in any other groups), then they will lose the "Guest" membership as you are seeing.

    If you want this to behave differently, then you have to explicitly add them to the "Guest" group. So this either explicitly promoting them to "Guest" or creating a group "lower" than "Guest" and making that your new default group. (Of course that would still require a promotion to "Guest" first.)


To post a comment, please login or register a new account.