Beispiel #1
0
        public async Task <SaltyCommandResult> ChangeSyzeAsync(
            [Description("Size you want to ")] byte size,
            [Description("Player you want to change the size")]
            IPlayerEntity player = null)
        {
            if (player == null)
            {
                player = Context.Player;
            }

            player.Size = size;
            await player.ActualizeUiSize();

            return(new SaltyCommandResult(true, $"{player.Character.Name}'s size has been changed to {size}"));
        }