Do you always delete your comments or why do i never see them?
Am 29.05.2013 11:27, schrieb DarkArc:
>
> In
> src/main/java/com/sk89q/worldguard/bukkit/commands/RegionMemberCommands.java:
>
> >              }
> >          }
> >  
> > -        RegionDBUtil.removeFromDomain(region.getOwners(), args.getPaddedSlice(2, 0), 0);
> > +        if (updateCommand == "addmember") {
> > +            RegionDBUtil.addToDomain(region.getMembers(), args.getPaddedSlice(2, 0), 0);
> > +
> > +        } else if (updateCommand == "addowner") {
> > +            RegionDBUtil.addToDomain(region.getOwners(), args.getPaddedSlice(2, 0), 0);
> > +
> > +        } else if (updateCommand == "removemember") {
> > +            RegionDBUtil.removeFromDomain(region.getMembers(), args.getPaddedSlice(2, 0), 0);
> > +
> > +        } else if (updateCommand == "removeowner") {
> > +            RegionDBUtil.removeFromDomain(region.getOwners(), args.getPaddedSlice(2, 0), 0);
> > +        }
>
> Quickly glancing over the strings are probably better as enums.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/sk89q/worldguard/pull/271/files#r4430783>.
>